@Test
public void shouldCreateFieldReader() {

    Foo foo = new Foo();
    foo.setBar("bar");
    FieldReader fieldReader = factory.apply(Foo.class.getDeclaredFields()[0]);
    Assertions.assertNotNull(fieldReader);
    Object value = fieldReader.read(foo);
    Assertions.assertEquals("bar", value);
}