@Test
public void should_find_by()
{
// given
MappedOne one = createMappedOne("shouldFindBy");
// when
MappedOne byPk = mappedOneRepository.findBy(one.getId());
MappedOne byName = mappedOneRepository.findByName("shouldFindBy");
// then
assertEquals(one.getId(), byPk.getId());
assertEquals(one.getId(), byName.getId());
}