### Question:
RelationshipFinder { public static RelationshipList findRelationships( Synset sourceSynset, Synset targetSynset, PointerType type) throws CloneNotSupportedException, JWNLException { return (type.isSymmetric()) ? findSymmetricRelationships(sourceSynset, targetSynset, type) : findAsymmetricRelationships(sourceSynset, targetSynset, type); }  static int getImmediateRelationship(IndexWord sourceWord, IndexWord targetWord); static RelationshipList findRelationships(
            Synset sourceSynset, Synset targetSynset, PointerType type); static RelationshipList findRelationships(
            Synset sourceSynset, Synset targetSynset, PointerType type, int depth);  }### Answer:
@Test public void testFindAsymmetricRelationshipsDepth() throws JWNLException, CloneNotSupportedException { dictionary.edit(); Synset s1 = dictionary.createSynset(POS.VERB); Synset s2 = dictionary.createSynset(POS.VERB); Synset s3 = dictionary.createSynset(POS.VERB); s1.getPointers().add(new Pointer(PointerType.CAUSE, s1, s2)); s2.getPointers().add(new Pointer(PointerType.CAUSE, s2, s3)); RelationshipList ll = RelationshipFinder.findRelationships(s1, s3, PointerType.CAUSE, 2); Assert.assertEquals(1, ll.size()); Relationship r = ll.get(0); Assert.assertTrue(r instanceof AsymmetricRelationship); Assert.assertEquals(4, r.getSize()); RelationshipList lll = RelationshipFinder.findRelationships(s1, s3, PointerType.CAUSE, 1); Assert.assertEquals(0, lll.size()); }