@Test
    public void shouldTimeOutnonAliasedClientSendingByteCode() {
        final Cluster cluster = TestClientFactory.build().create();
        final Client client = cluster.connect();
        final GraphTraversalSource g = traversal().withRemote(DriverRemoteConnection.using(client, "ggrateful"));
        assertThrows(CompletionException.class, () -> {
            final List<Vertex> res = g.with("evaluationTimeout", 1).V().both().both().both().toList();
            fail("Failed to time out. Result: " + res);
        });
    }
Tests for options sent by the client using with().

@author Ryan Tan
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/ClientWithOptionsIntegrateTest.java