JwtTokenServiceEndpointImpl extends JwtTokenServiceEndpoint { @Nonnull @Override @SuppressWarnings("ConstantConditions") public String getHostUrl() { return Jenkins.getInstance().getRootUrl(); }  @Nonnull @Override @SuppressWarnings("ConstantConditions") String getHostUrl();  }
@Test public void verify(){ List<JwtTokenServiceEndpoint> jwtTokenServiceEndpoints = JwtTokenServiceEndpoint.all(); assertEquals(1, jwtTokenServiceEndpoints.size()); assertEquals(Jenkins.getInstance().getRootUrl(), jwtTokenServiceEndpoints.get(0).getHostUrl()); }