### Question:
ExampleAgent { static List<TransformDescriptor> readProbes(String probesFile) throws IOException { if (probesFile == null || probesFile.trim().length() == 0) { probesFile = DEFAULT_CONFIG; } File file = new File(probesFile); List<String> lines = null; if (file.exists()) { lines = Files.readAllLines(file.toPath()); } else { lines = Utils.readFromStream(ExampleAgent.class.getClassLoader().getResourceAsStream(DEFAULT_CONFIG)); } return TransformDescriptor.from(lines); }  static void premain(String agentArguments, Instrumentation instrumentation); static void agentmain(String agentArguments, Instrumentation instrumentation); static Logger getLogger();  }### Answer:
@Test void testReadProbes() throws IOException { List<TransformDescriptor> probes = ExampleAgent.readProbes(null); assertEquals(3, probes.size()); for (TransformDescriptor probe : probes) { assertEquals(TestProgram.class.getName(), probe.getTransformedClass()); assertNotNull(probe.getTransformedMethod()); assertNotNull(probe.getTransformedDescriptor()); } }