### Question:
MCQHandler implements IAssessmentHandler { @Override public String populateAnswer(String answer) { return answer; } private  MCQHandler(); static IAssessmentHandler getInstance(); @Override String populateQuestion(String body); @Override String populateAnswer(String answer);  }### Answer:
@Test public void populateAnswer() throws Exception { String passedAnswerString = "Answer"; String answerString = handler.populateAnswer(passedAnswerString); Assert.assertNotNull(answerString); Assert.assertTrue(StringUtils.isNoneBlank(answerString)); Assert.assertTrue(StringUtils.equals(passedAnswerString, answerString)); }
@Test public void populateMalformedAnswer() throws Exception { String answerString = handler.populateAnswer(null); Assert.assertNull(answerString); Assert.assertTrue(StringUtils.isBlank(answerString)); }