PatientDiscovery201306Processor { protected AssigningAuthorityHomeCommunityMappingDAO getAssigningAuthorityHomeCommunityMappingDAO() { return new AssigningAuthorityHomeCommunityMappingDAO(); }  PRPAIN201306UV02 createNewRequest(PRPAIN201306UV02 request, String targetCommunityId); void storeMapping(PRPAIN201306UV02 request);  }
@Test public void testGetAssigningAuthorityHomeCommunityMappingDAO() { try { PatientDiscovery201306Processor storage = new PatientDiscovery201306Processor() { @Override protected AssigningAuthorityHomeCommunityMappingDAO getAssigningAuthorityHomeCommunityMappingDAO() { return mockMappingDao; } }; AssigningAuthorityHomeCommunityMappingDAO mappingDao = storage .getAssigningAuthorityHomeCommunityMappingDAO(); assertNotNull("AssigningAuthorityHomeCommunityMappingDAO was null", mappingDao); } catch (Throwable t) { System.out.println("Error running testGetAssigningAuthorityHomeCommunityMappingDAO: " + t.getMessage()); t.printStackTrace(); fail("Error running testGetAssigningAuthorityHomeCommunityMappingDAO: " + t.getMessage()); } }