@Override
    public Settings overrideSettings(final Settings settings) {
        settings.channelizer = HttpChannelizer.class.getName();
        final String nameOfTest = name.getMethodName();
        switch (nameOfTest) {
            case "should413OnPostWithResultTooLarge":
                settings.maxRequestContentLength = 31;
                break;
            case "should200OnPOSTTransactionalGraph":
                useTinkerTransactionGraph(settings);
                break;
            case "should200OnPOSTTransactionalGraphInStrictMode":
                useTinkerTransactionGraph(settings);
                settings.strictTransactionManagement = true;
                break;
            case "should200OnPOSTWithGraphSON4d0AcceptHeaderDefaultResultToJson":
                settings.serializers.clear();
                final Settings.SerializerSettings serializerSettingsV4 = new Settings.SerializerSettings();
                serializerSettingsV4.className = GraphSONUntypedMessageSerializerV4.class.getName();
                settings.serializers.add(serializerSettingsV4);
                break;
            case "should401OnPOSTWithNoAuthorizationHeader":
            case "should401OnGETWithBadAuthorizationHeader":
            case "should401OnPOSTWithBadAuthorizationHeader":
            case "should401OnGETWithBadEncodedAuthorizationHeader":
            case "should401OnPOSTWithBadEncodedAuthorizationHeader":
            case "should401OnGETWithInvalidPasswordAuthorizationHeader":
            case "should401OnPOSTWithInvalidPasswordAuthorizationHeader":
            case "should200OnPOSTWithAuthorizationHeaderExplicitHandlerSetting":
                configureForAuthenticationWithHandlerClass(settings);
                break;
            case "should200OnPOSTWithAuthorizationHeader":
                configureForAuthentication(settings);
                break;
            case "should500OnPOSTWithEvaluationTimeout":
                settings.evaluationTimeout = 5000;
                settings.gremlinPool = 1;
                break;
            case "should200OnPOSTWithChunkedResponse":
            case "shouldHandleErrorsInFirstChunkPOSTWithChunkedResponse":
            case "shouldHandleErrorsInFirstChunkPOSTWithChunkedResponseUsingTextPlain":
            case "shouldHandleErrorsNotInFirstChunkPOSTWithChunkedResponse":
            case "shouldHandleErrorsNotInFirstChunkPOSTWithChunkedResponseUsingTextPlain":
            case "should200OnPOSTWithChunkedResponseGraphBinary":
            case "should200OnPOSTWithChunkedResponseUsingTextPlain":
                settings.resultIterationBatchSize = 16;
                break;
        }
        return settings;
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerHttpIntegrateTest.java