int year = 1900;
String[] statusCodes = new String[] {"UG", "PG", "SL", "SPW", "N/A"};
ProgrammeAnalysisExtractor instance = new ProgrammeAnalysisExtractor(statusCodes);
ProgrammeAnalysis[] result = instance.extract(year);
assertEquals(1, result.length);
assertEquals(statusCodes.length, result[0].getNumberByStatus().length);
assertEquals(1, result[0].getNumberByStatus()[1]); //PG
}