FileProcessController implements ProcessController { @Override public void checkPidSupport() { throw new AttachAPINotFoundException( "The Attach API classes could not be found on the classpath. Please include JDK tools.jar on the classpath or add the JDK tools.jar to the jre/lib/ext directory."); } FileProcessController(final FileControllerParameters parameters, final int pid);   FileProcessController(final FileControllerParameters parameters, final int pid,
      final long timeout, final TimeUnit units); @Override int getProcessId(); @Override String status(); @Override void stop(); @Override void checkPidSupport();  }
@Test public void checkPidSupport_throwsAttachAPINotFoundException() throws Exception { assertThatThrownBy(() -> controller.checkPidSupport()) .isInstanceOf(AttachAPINotFoundException.class); }