ByIdResultSelector implements ResultSelector { @Override public String toString() { return String.format("%s with ID %s", ResultAction.class.getName(), id); } ByIdResultSelector(final String id); @Override Optional<ResultAction> get(final Run<?, ?> build); @Override String toString();  }
@Test void testToString() { ByIdResultSelector selector = new ByIdResultSelector("1"); assertThat(selector.toString()).isEqualTo("io.jenkins.plugins.analysis.core.model.ResultAction with ID 1"); }