@Test
public void testFindById() throws Exception {

  ResourceTypeEntity entity = new ResourceTypeEntity();
  // set expectations
  expect(entityManager.find(ResourceTypeEntity.class, 99)).andReturn(entity);
  replay(entityManager);
  ResourceTypeDAO dao = new ResourceTypeDAO();
  dao.entityManagerProvider = entityManagerProvider;
  Assert.assertEquals(entity, dao.findById(99));
}