@Test
public void testMerge() {

  BlueprintEntity entity = new BlueprintEntity();
  BlueprintEntity entity2 = new BlueprintEntity();
  // set expectations
  expect(entityManager.merge(eq(entity))).andReturn(entity2);
  replay(entityManager);
  BlueprintDAO dao = new BlueprintDAO();
  dao.entityManagerProvider = entityManagerProvider;
  assertSame(entity2, dao.merge(entity));
  verify(entityManagerProvider, entityManager);
}