public static <T> Inner<T> create() {
    return new Inner<T>();
  }
@Test
  @Category(NeedsRunner.class)
  public void testFilterFieldsByName() {
    // Pass only elements where field1 == "pass && field2 > 50.
    PCollection<AutoValue_FilterTest_Simple> filtered =
        pipeline
            .apply(
                Create.of(
                    new AutoValue_FilterTest_Simple("pass", 52, 2),
                    new AutoValue_FilterTest_Simple("pass", 2, 2),
                    new AutoValue_FilterTest_Simple("fail", 100, 100)))
            .apply(
                Filter.<AutoValue_FilterTest_Simple>create()
                    .whereFieldName("field1", s -> "pass".equals(s))
                    .whereFieldName("field2", (Integer i) -> i > 50));
    PAssert.that(filtered).containsInAnyOrder(new AutoValue_FilterTest_Simple("pass", 52, 2));
    pipeline.run();
  }