@Test
public void serializeDocumentForIndexing() {

    ExampleServiceState state = new ExampleServiceState();
    state.documentSelfLink = "selfLink";
    state.documentKind = Utils.buildKind(ExampleServiceState.class);
    Output o = KryoSerializers.serializeDocumentForIndexing(state, 2048);
    ExampleServiceState deser = (ExampleServiceState) KryoSerializers.deserializeDocument(
            o.getBuffer(), 0,
            o.position());
    assertNull(deser.documentSelfLink);
    assertNull(deser.documentKind);
}