@Test
  public void testRemove() {
    createSingleRecord();
    createSingleRecord();
    Assert.assertEquals(2, repositoryVersionDAO.findAll().size());
    repositoryVersionDAO.remove(repositoryVersionDAO.findByPK(FIRST_ID));
    Assert.assertEquals(1, repositoryVersionDAO.findAll().size());
    Assert.assertNull(repositoryVersionDAO.findByPK(1L));
  }
CrudDAO unit tests.
Uses repo_version table for in-memory DB tests.
ambari-server/src/test/java/org/apache/ambari/server/orm/dao/CrudDAOTest.java