I have a map here mapOfQuesToAnsToYearToMaleOrFemaleCount and I am trying to get count here from test class, calling from VF Page I am able to achieve this but not in test class. from test class I am getting my map(mapOfQuesToAnsToYearToMaleOrFemaleCount) like below but not able to get the value of count, can any body tell me what is the problem?
Integer count = mapOfQuesToAnsToYearToMaleOrFemaleCount.get(questionID).get(answerId).get(year).get(gender); //trying to get value of count
system.debug(mapOfQuesToAnsToYearToMaleOrFemaleCount);
// {a045E000001Bs6NQAS={a005E000002My8CQAS={year 07={Female=0, Male=0}}}, a045E000001Bs6OQAS={a005E000002My8DQAS={year 07={Female=0, Male=0}}, a005E000002My8EQAS={year 07={Female=0, Male=0}}}} //map I got from running test
system.debug(questionID);
//a045E000001Bs6NQAS
system.debug(answerId);
// a005E000002My8CQAS
system.debug(year);
//year 07
system.debug(gender);
//Female
system.debug(count);
//null