### Question:
DefaultAgendaFactory implements AgendaFactory { protected Agenda generateTemplatedAgenda(AgendaTemplate agendaTemplate, TransformRequest transformRequest) { Agenda generatedAgenda = agendaTemplateMapper .map(agendaTemplate, jsonHelper.getObjectMapper().valueToTree(createDefaultPayloadMap(transformRequest))); logger.info("TransformRequest: [{}] Agenda generated from template: [{}]:[{}]", transformRequest.getId(), agendaTemplate.getId(), agendaTemplate.getTitle()); return generatedAgenda; } DefaultAgendaFactory(); @Override Agenda createAgendaFromObject(AgendaTemplate agendaTemplate, Object payload, String progressId, String cid); DefaultAgendaFactory setAgendaTemplateMapper(AgendaTemplateMapper agendaTemplateMapper); DefaultAgendaFactory setJsonHelper(JsonHelper jsonHelper); static final String OBJECT_PAYLOAD_STRING; static final String TRANSFORM_PAYLOAD_STRING; }### Answer:
@Test(dataProvider = "transformRequestProvider") public void testWithTemplate(TransformRequest transformRequest) { response = new DefaultDataObjectResponse<>(); response.add(new AgendaTemplate()); Assert.assertEquals(agendaFactory.generateTemplatedAgenda(agendaTemplate, transformRequest), templateGeneratedAgenda); }