VirtualMachineAttache { String findLastAgentJarOrNull() { return findLastAgentJarOrNull("."); }  void loadAgentAfterAttach(); void loadAgentAfterAttach(String options); void loadAgentAfterAttach(String processId, String options); void showProcessList();  }
@Test public void testFindLastAgentJarOrNull() { String CLASS_PATH = System.getProperty("user.dir") + File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "AGENT_HOME"; assertThat(attache.findLastAgentJarOrNull(), isEmptyOrNullString()); assertThat(attache.findLastAgentJarOrNull(CLASS_PATH), is("0.0.2")); }