@Test
public void testRemoveByName() {

  BlueprintEntity entity = new BlueprintEntity();
  BlueprintDAO dao = new BlueprintDAO();
  dao.entityManagerProvider = entityManagerProvider;
  expect(entityManager.find(eq(BlueprintEntity.class), eq("test"))).andReturn(entity);
  entityManager.remove(entity);
  expectLastCall();
  replay(entityManager);
  dao.removeByName("test");
  verify(entityManager);
}