### Question:
YamlQuestionDaoImpl implements QuestionDao { @Override public Question getByIndex(int index) { return questions.get(index); } @SuppressWarnings("unchecked")  YamlQuestionDaoImpl(ResourceSupplier resourceSupplier); @Override Question getByIndex(int index); @Override int size();  }### Answer:
@Test public void questionDetail() { Question question = dao.getByIndex(0); assertEquals("first test question", question.getDescription()); assertEquals(4, question.getVariants().length); assertEquals(1, question.getRightVariantNumber()); }