@Test
public void testFindByName() {

  BlueprintEntity entity = new BlueprintEntity();
  // set expectations
  expect(entityManager.find(eq(BlueprintEntity.class), eq("test-cluster-name"))).andReturn(entity);
  replay(entityManager);
  BlueprintDAO dao = new BlueprintDAO();
  dao.entityManagerProvider = entityManagerProvider;
  BlueprintEntity result = dao.findByName("test-cluster-name");
  assertSame(result, entity);
  verify(entityManagerProvider, entityManager);
}