@Test
    @SuppressWarnings("unchecked")
    public void shouldReceiveFailureTimeOutOnScriptEval() throws Exception {
        try (SimpleClient client = TestClientFactory.createSimpleHttpClient()){
            final List<ResponseMessage> responses = client.submit(
                    RequestMessage.build("Thread.sleep(3000);'some-stuff-that-should not return'")
                            .addLanguage("gremlin-groovy").create()
                    );
            assertTrue(responses.get(0).getStatus().getMessage().contains("timeout occurred"));

            // validate that we can still send messages to the server
            assertEquals(2, ((Integer) (client.submit("g.inject(2)").get(0).getResult().getData()).get(0)).intValue());
        }
    }
Configure specific Gremlin Server settings for specific tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerIntegrateTest.java