@Test
public void shouldCreateFromTemplate() {

    DocumentTemplate template= Mockito.mock(DocumentTemplate.class);
    PersonRepository personRepository = producer.get(PersonRepository.class, template);
    assertNotNull(personRepository);
}