@Test
    public void should405OnGETRequest() throws Exception {
        // /gremlin endpoint only allows POST request for now until GET is implemented to return status
        final CloseableHttpClient httpclient = HttpClients.createDefault();
        final HttpGet httpget = new HttpGet(TestClientFactory.createURLString());

        try (final CloseableHttpResponse response = httpclient.execute(httpget)) {
            assertEquals(405, response.getStatusLine().getStatusCode());
            assertTrue(response.containsHeader(REQUEST_ID_HEADER_NAME));
        }
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerHttpIntegrateTest.java