@Test
public void testWriteObject() throws IOException, ClassNotFoundException {

    Image image = new Image("http://dubbo.apache.org/img/dubbo_white.png", "logo", 300, 480, Image.Size.SMALL);
    this.gsonJsonObjectOutput.writeObject(image);
    this.flushToInput();
    Image readObjectForImage = gsonJsonObjectInput.readObject(Image.class);
    assertThat(readObjectForImage, not(nullValue()));
    assertThat(readObjectForImage, is(image));
}