@Test
public void shouldCreateFieldWriter() {

    Foo foo = new Foo();
    foo.setBar("bar");
    FieldWriter writer = factory.apply(Foo.class.getDeclaredFields()[0]);
    Assertions.assertNotNull(writer);
    writer.write(foo, "bar");
    Assertions.assertEquals("bar", foo.getBar());
}