@Test
public void testGetMaximumPatternDepth() {

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