@Test
public void createDataOutputWrapperCallsReturnSameInstanceEveryTime() {

    // given
    SingleThreadJsonFactory factory = new SingleThreadJsonFactory();
    DataOutput dataOutput1 = mock(DataOutput.class);
    OutputStream outputStream1 = factory._createDataOutputWrapper(dataOutput1);
    // when
    DataOutput dataOutput2 = mock(DataOutput.class);
    OutputStream outputStream2 = factory._createDataOutputWrapper(dataOutput2);
    // then
    assertSame(outputStream1, outputStream2);
}