@Test
public void testNewGeneratorContext() {

    factory.newGeneratorContext();
    assertThat(factory.getGeneratorContexts()).hasSize(1);
    assertThat(factory.getGeneratorContexts().get(0).getDepth()).isEqualTo(0);
    factory.newGeneratorContext();
    assertThat(factory.getGeneratorContexts()).hasSize(2);
    assertThat(factory.getGeneratorContexts().get(1).getDepth()).isEqualTo(0);
}