@Test
    public void shouldApplyCurrentFunctionAndThenAnotherSuppliedOne() {
        final List<String> l = new ArrayList<>();
        final TriConsumer<String, String, String> f = (a, b, c) -> l.add("first");
        final TriConsumer<String, String, String> after = (a, b, c) -> l.add("second");

        f.andThen(after).accept("a", "b", "c");

        assertEquals(2, l.size());
        assertEquals("first", l.get(0));
        assertEquals("second", l.get(1));
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/util/function/TriConsumerTest.java