@Test
public void testGetPeers() {

    final LHSGeneratorContext root = factory.newGeneratorContext();
    final LHSGeneratorContext peer1 = factory.newPeerGeneratorContext(root, mock(FieldConstraint.class));
    final LHSGeneratorContext peer2 = factory.newPeerGeneratorContext(peer1, mock(FieldConstraint.class));
    final List<LHSGeneratorContext> peers = factory.getPeers(root);
    assertThat(peers).contains(peer1, peer2);
}