@Test
public void whenGetAll() {

    List<TestHibernateEntity> hibernateEntities = mock(List.class);
    when(dao.findAll()).thenReturn(hibernateEntities);
    List<TestDomainEntity> domainEntities = mock(List.class);
    when(hibernateEntitiesToDomainEntitiesConverter.convert(hibernateEntities)).thenReturn(domainEntities);
    List<TestDomainEntity> actual = gateway.getAll();
    verify(dao).findAll();
    verifyNoMoreInteractions(dao);
    assertThat(actual).isSameAs(domainEntities);
}