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