playerService = new PlayerService(em);
}
@Test
public void insertPlayerTest() {
final Player player = createPlayer();
em.getTransaction().begin();
playerService.insertPlayer(player);
em.getTransaction().commit();
final Player result = playerService.findPlayerById(player.getId());
Assert.assertNotNull(result);
Assert.assertEquals("Foobar", player.getLastName());
Assert.assertEquals(185, player.getHeight().intValue());
}