@Test
 public void testfetchNFStatusById2() throws Exception {
   // check for valid and precount
   FetchByIdRequest request = new FetchByIdRequest();
   request.setFetchId(3);
   InternalResultsResponse<NFStatus> response = getNFStatusDAC().fetchNFStatusById(request);
   assertTrue(response.getResultsSetInfo().getPageSize() == 1);
   assertEquals(response.getStatus(), Status.OperationSuccess);
 }
  @Test
  public void testdeleteNFStatus() throws Exception {

    NFStatus funcionario = new NFStatus();
    funcionario = insertNFStatus(PersistanceActionEnum.INSERT);
    InternalResultsResponse<NFStatus> response = new InternalResultsResponse<NFStatus>();
    Integer a = getNFStatusDAC().insertNFStatus(funcionario, "", response);
    assertEquals(response.getStatus(), Status.OperationSuccess);
    funcionario = response.getFirstResult();
    response = new InternalResultsResponse<NFStatus>();
    funcionario.setModelAction(PersistanceActionEnum.DELETE);
    Integer b = getNFStatusDAC().deleteNFStatus(funcionario, response);
    assertEquals(response.getStatus(), Status.OperationSuccess);
    FetchByIdRequest request = new FetchByIdRequest();
    request.setFetchId(response.getFirstResult().getId());
    InternalResultsResponse<NFStatus> responseA = getNFStatusDAC().fetchNFStatusById(request);
    assertTrue(
        responseA.getResultsList().get(0).getStatusList().get(0).getStatus()
            == CdStatusTypeEnum.DELETADO);
  }
  @Test
  public void testinsertNFStatus() throws Exception {

    NFStatus funcionario = new NFStatus();
    funcionario = insertNFStatus(PersistanceActionEnum.INSERT);

    InternalResultsResponse<NFStatus> response = new InternalResultsResponse<NFStatus>();

    Integer a = getNFStatusDAC().insertNFStatus(funcionario, "INSERT", response);
    assertEquals(response.getStatus(), Status.OperationSuccess);

    funcionario = new NFStatus();
    funcionario = insertNFStatus(PersistanceActionEnum.INSERT);
    response = new InternalResultsResponse<NFStatus>();

    a = getNFStatusDAC().insertNFStatus(funcionario, "", response);
    assertEquals(response.getStatus(), Status.OperationSuccess);
    FetchByIdRequest request = new FetchByIdRequest();
    request.setFetchId(response.getFirstResult().getId());
    InternalResultsResponse<NFStatus> responseA = getNFStatusDAC().fetchNFStatusById(request);
    assertTrue(responseA.getResultsList().size() == 1);
    assertEquals(responseA.getStatus(), Status.OperationSuccess);
  }