@Test
public void shouldWriteDocumentWithSingleField() throws Exception {

    doc.set("field", "value");
    after = reader.read(writer.write(doc));
    assertThat(after.getString("field")).isEqualTo("value");
    assertThat(after.size()).isEqualTo(1);
}