### Question:
ExploratoryLibList { public Map<String, String> getLibs(String group) { return libs.get(group); } ExploratoryLibList(String imageName, String content); List<String> getGroupList(); String getImageName(); Map<String, String> getLibs(String group); List<LibraryDTO> getLibs(String group, String startWith); boolean isExpired(); boolean isUpdateNeeded(); void setUpdating(); boolean isUpdating(); @Override String toString();  }### Answer:
@Test public void getLibs() { String content = "{" + "\"os_pkg\": {\"htop\": \"2.0.1-1ubuntu1\", \"python-mysqldb\": \"1.3.7-1build2\"}," + "\"pip2\": {\"requests\": \"N/A\", \"configparser\": \"N/A\"}," + "\"pip3\": {\"configparser\": \"N/A\"}," + "\"r_pkg\": {\"rmarkdown\": \"1.5\"}" + "}"; ExploratoryLibList libs = new ExploratoryLibList("imageName", content); assertEquals("imageName", libs.getImageName()); assertEquals(false, libs.isExpired()); assertEquals(false, libs.isUpdateNeeded()); assertEquals(false, libs.isUpdating()); List<String> groups = libs.getGroupList(); assertEquals(4, groups.size()); assertEquals("os_pkg", groups.get(0)); assertEquals("r_pkg", groups.get(3)); Map<String, String> map = libs.getLibs("os_pkg"); assertEquals(2, map.size()); assertEquals("2.0.1-1ubuntu1", map.get("htop")); assertEquals("1.3.7-1build2", map.get("python-mysqldb")); final List<LibraryDTO> dtoList = libs.getLibs("os_pkg", "py"); assertEquals(1, dtoList.size()); assertEquals("1.3.7-1build2", dtoList.get(0).getVersion()); libs.setUpdating(); assertEquals(true, libs.isUpdating()); }