### Question:
AssessmentItemFactory { public static IAssessmentHandler getHandler(String questionType) { IAssessmentHandler manager = null; switch (questionType) { case "mcq": manager = MCQHandler.getInstance(); break; case "reference": manager = DefaultHandler.getInstance(); break; default: break; } return manager; }  static IAssessmentHandler getHandler(String questionType);  }### Answer:
@Test public void assessmentItemFactoryMcqTest() throws Exception { IAssessmentHandler handler = AssessmentItemFactory.getHandler("mcq"); Assert.assertNotNull(handler); Assert.assertTrue(handler instanceof MCQHandler); }
@Test public void assessmentItemFactorySATest() { IAssessmentHandler handler = AssessmentItemFactory.getHandler("reference"); Assert.assertNotNull(handler); Assert.assertTrue(handler instanceof DefaultHandler); }
@Test public void assessmentItemFactoryVSATest() { IAssessmentHandler handler = AssessmentItemFactory.getHandler("reference"); Assert.assertNotNull(handler); Assert.assertTrue(handler instanceof DefaultHandler); }
@Test public void assessmentItemFactoryLATest() { IAssessmentHandler handler = AssessmentItemFactory.getHandler("reference"); Assert.assertNotNull(handler); Assert.assertTrue(handler instanceof DefaultHandler); }
@Test public void assessmentItemFactoryDefaultTest() { IAssessmentHandler handler = AssessmentItemFactory.getHandler("MCQ"); Assert.assertNull(handler); }