@Test
public void listAndAttach() throws Exception, NoSuchMethodException, IllegalAccessException {

    List<ProcessDescription> procs = vmHandler.listProcesses();
    assertTrue(procs.size() > 0);
    boolean foundAtLeastOne = false;
    for (ProcessDescription p : procs) {
        try {
            foundAtLeastOne |= tryAttach(p.getId());
        } catch (Exception exp) {
            System.err.println("ERROR: " + p.getId() + " " + p.getDisplay() + ": " + exp);
        }
    }
    assertTrue(foundAtLeastOne);
}