protected Configuration configureWithFilter(Configuration config) {
        GraphFilter filter = new GraphFilter();
        filter.setVertexFilter(__.hasLabel("artist"));
        String labelKey = "filter";
        final BaseConfiguration filterConfig = new BaseConfiguration();
        VertexProgramHelper.serialize(filter, filterConfig, labelKey);
        config.set(Constants.GREMLIN_HADOOP_GRAPH_FILTER, filterConfig.getProperty(labelKey).toString());
        return config;
    }
@author Daniel Kuppitz (http://gremlin.guru)
@author Marko A. Rodriguez (http://markorodriguez.com)
hadoop-gremlin/src/test/java/org/apache/tinkerpop/gremlin/hadoop/structure/io/RecordReaderWriterTest.java