@Test
public void canCreateOutputStreamBasedGenerator() throws IOException {

    // given
    SingleThreadJsonFactory factory = new SingleThreadJsonFactory();
    OutputStream os1 = mock(OutputStream.class);
    // when
    JsonGenerator generator1 = factory.createGenerator(os1, JsonEncoding.UTF8);
    // then
    assertNotNull(generator1);
}