@Test
public void _createUTF8GeneratorResetsDelegatesAndGenerator() {

    // given
    SingleThreadJsonFactory factory = new SingleThreadJsonFactory();
    OutputStream os1 = mock(OutputStream.class);
    // when
    factory._createUTF8Generator(os1, mock(IOContext.class));
    // then
    assertSame(factory.outputStreamDelegate.getDelegate(), os1);
    assertSame(factory.ioContext.getSourceReference(), os1);
}