### Question:
OrderItemTemplateServiceImpl implements OrderItemTemplateService { @Override public Collection<OrderItemTemplate> getOrderItemTemplates() { return orderItemTemplateDAO.findAll(); } @Autowired  OrderItemTemplateServiceImpl(OrderItemTemplateDAO orderItemTemplateDAO); @Override Collection<OrderItemTemplate> getOrderItemTemplates();  }### Answer:
@Test public void shouldGetOrderItemTemplates() throws Exception { ImmutableList<OrderItemTemplate> orderItemTemplates = ImmutableList.of(); Mockito.when(orderItemTemplateDAO.findAll()).thenReturn(orderItemTemplates); Collection<OrderItemTemplate> result = orderItemTemplateService.getOrderItemTemplates(); Assertions.assertThat(result).isSameAs(orderItemTemplates); }