OsBO { public List<OsData> getAllOs() { List<OsData> allOsData = new ArrayList<OsData>(); try { List<TblOs> allRecords = tblOsJpaController.findTblOsEntities(); for (TblOs tblOs : allRecords) { OsData osData = new OsData(tblOs.getName(), tblOs.getVersion(), tblOs.getDescription()); allOsData.add(osData); } } catch (ASException ase) { throw ase; } catch (Exception e) { log.error("Error during retrieval of OS details.", e); throw new ASException(ErrorCode.WS_OS_RETRIEVAL_ERROR, e.getClass().getSimpleName()); } return allOsData; } OsBO(); List<OsData> getAllOs(); String updateOs(OsData osData, String uuid); String createOs(OsData osData, String uuid); String deleteOs(String osName, String osVersion, String uuid);  }
@Test public void testGetAllOs() { System.out.println("getAllOs"); OsBO instance = new OsBO(); List result = instance.getAllOs(); assertNotNull(result); }