@Test
public void testFieldInSuperclass() throws Exception {

    Subclass pojo = Subclass.builder().baseVal(1).subVal("two").build();
    JsonGenerator jgen = mock(JsonGenerator.class);
    SerializerProvider provider = mock(SerializerProvider.class);
    PropertyWriter writer = mock(PropertyWriter.class);
    when(writer.getName()).thenReturn("baseVal");
    ExplicitlySetFilter.INSTANCE.serializeAsField(pojo, jgen, provider, writer);
    verify(writer, atLeast(1)).getName();
    verify(writer).serializeAsField(pojo, jgen, provider);
    verifyNoMoreInteractions(writer);
}