}
@Before
public void setUp() {
if (query().from(cat).notExists()) {
entityManager.persist(new Cat("Beck", 1, Color.BLACK));
entityManager.persist(new Cat("Kate", 2, Color.BLACK));
entityManager.persist(new Cat("Kitty", 3, Color.BLACK));
entityManager.persist(new Cat("Bobby", 4, Color.BLACK));
entityManager.persist(new Cat("Harold", 5, Color.BLACK));
entityManager.persist(new Cat("Tim", 6, Color.BLACK));
entityManager.flush();
}
}