VirtualMachineAttache { public void showProcessList() { if (!invoke(ATTACH_CLASS_NAME, "showProcessList", Object.class.getClassLoader())) { invoke(ATTACH_CLASS_NAME, "showProcessList", Thread.currentThread().getContextClassLoader()); } }  void loadAgentAfterAttach(); void loadAgentAfterAttach(String options); void loadAgentAfterAttach(String processId, String options); void showProcessList();  }
@Test public void testShowProcessList() { attache.showProcessList(); }