### Question:
ServerInfoCollector { void storeCallableQueueDump(final File outputDir) { try { System.out.print("Getting Queue Dump..."); final List<String> queueDump = client.getQueueDump(); try (DiagBundleEntryWriter configEntryWriter = new DiagBundleEntryWriter(outputDir, "queue-dump.txt")) { for (String d : queueDump) { configEntryWriter.writeString(d); configEntryWriter.writeNewLine(); } } System.out.println("Done"); } catch (OozieClientException | IOException e) { System.err.println("Exception occurred during the retrieval of Oozie queue dump: " + e.getMessage()); } } ServerInfoCollector(final DiagOozieClient client);   }### Answer:
@Test public void testGetCallableQueueDump() throws Exception { final List<String> testDump = Arrays.asList("(coord_action_start,1)","(coord_action_start,1)"); doReturn(testDump).when(mockDiagClient).getQueueDump(); serverInfoCollector.storeCallableQueueDump(testTempFolder); final File shareLibOut = new File(testTempFolder, "queue-dump.txt"); assertTrue(shareLibOut.exists()); assertFileContains(shareLibOut, "coord_action_start"); }