AttachProcessUtils implements InternalProcessUtils { @Override public boolean killProcess(final int pid) { throw new UnsupportedOperationException("killProcess(int) not supported by AttachProcessUtils"); }  @Override boolean isProcessAlive(final int pid); @Override boolean killProcess(final int pid); @Override boolean isAvailable(); @Override boolean isAttachApiAvailable();  }
@Test @Retry(3) public void killProcess_throwsUnsupportedOperationException() throws Exception { assertThatThrownBy(() -> attachProcessUtils.killProcess(fakePid)) .isInstanceOf(UnsupportedOperationException.class) .hasMessage("killProcess(int) not supported by AttachProcessUtils"); }