public JerseyTest build() {
            return new JerseyTest() {

                @Override
                protected TestContainerFactory getTestContainerFactory() throws TestContainerException {
                    return super.getTestContainerFactory();

                }

                @Override
                protected Application configure() {
                    final LoggingFeature loggingFeature = new LoggingFeature(
                            java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME),
                            Level.INFO,
                            LoggingFeature.Verbosity.PAYLOAD_ANY,
                            LoggingFeature.DEFAULT_MAX_ENTITY_SIZE);


                    return new ResourceConfig()
                            .register(resourceSupplier.get())
                            .register(listener)
                            .register(new MyExceptionMapper()) // So we can get details of server side exceptions
                            .register(loggingFeature);
                }

                @Override
                protected URI getBaseUri() {
                    return UriBuilder
                            .fromUri("http://localhost")
                            .port(port)
                            .path(ResourcePaths.API_ROOT_PATH)
                            .build();
                }
            };
        }
@return The JerseyTest instance for the first node
stroom-test-common/src/main/java/stroom/test/common/util/test/AbstractMultiNodeResourceTest.java