@Test
public void testGetMaximumDepth() {

    final LHSGeneratorContext root = factory.newGeneratorContext();
    assertThat(factory.getMaximumDepth()).isEqualTo(0);
    factory.newChildGeneratorContext(root, mock(IPattern.class));
    assertThat(factory.getMaximumDepth()).isEqualTo(1);
}