assertEquals(info1, _repo.findOne(info1.getId()));
}
@Test
public void testFindAllByField() {
CswCapabilitiesInfoField info1 = newCswServerCapabilitiesInfo();
info1 = _repo.save(info1);
CswCapabilitiesInfoField info2 = newCswServerCapabilitiesInfo();
info2 = _repo.save(info2);
List<CswCapabilitiesInfoField> infos = _repo.findAllByFieldName(info1.getFieldName());
assertEquals(1, infos.size());
assertEquals(info1.getFieldName(), infos.get(0).getFieldName());
infos = _repo.findAllByFieldName(info2.getFieldName());
assertEquals(1, infos.size());
assertEquals(info2.getFieldName(), infos.get(0).getFieldName());
}