public void testFindByVersionIdFail() throws Exception {
    int crfVersionId = -1;
    int crfId = 1;

    CRFBean cb = cdao.findByVersionId(crfVersionId);

    assertNotNull("bean valid", cb);
    assertTrue("bean inactive", !cb.isActive());
  }
  public void testFindByVersionIdSuccess() throws Exception {
    int crfVersionId = 1;
    int crfId = 1;

    CRFBean cb = cdao.findByVersionId(crfVersionId);

    assertNotNull("bean valid", cb);
    assertTrue("bean id set", cb.isActive());
    assertEquals("correct bean found", cb.getId(), crfId);
  }
 public void testFindByPKFail() throws Exception {
   CRFBean sb = (CRFBean) cdao.findByPK(-1);
   assertNotNull("findbypk", sb);
   assertTrue("inactive object", !sb.isActive());
 }
 // testFindByPK
 public void testFindByPKSuccess() throws Exception {
   CRFBean sb = (CRFBean) cdao.findByPK(1);
   assertNotNull("findbypk", sb);
   assertTrue("active object", sb.isActive());
   assertEquals("correct object", sb.getId(), 1);
 }