@Test
  public void testCreate() {
    createSingleRecord();
    Assert.assertTrue(repositoryVersionDAO.findAll().size() == 1);
    createSingleRecord();
    Assert.assertTrue(repositoryVersionDAO.findAll().size() == 2);
  }
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