StaticEndpointAdapter extends AbstractEndpointAdapter { @Override public Endpoint getEndpoint() { throw new CitrusRuntimeException(String.format("Unable to create endpoint for static endpoint adapter type '%s'", getClass())); }  @Override Endpoint getEndpoint(); @Override EndpointConfiguration getEndpointConfiguration();  }
@Test(expectedExceptions = CitrusRuntimeException.class) public void testEndpointAdapter() { EndpointAdapter endpointAdapter = new StaticEndpointAdapter() { @Override protected Message handleMessageInternal(Message message) { return null; } }; endpointAdapter.getEndpoint(); }