### Question:
NetworkBBUtils { public boolean isRelationshipRelatedToExists(Optional<org.onap.aai.domain.yang.L3Network> l3network, String relatedToValue) { boolean isRelatedToExists = false; if (l3network.isPresent()) { List<org.onap.aai.domain.yang.Relationship> relationshipList = l3network.get().getRelationshipList().getRelationship(); for (org.onap.aai.domain.yang.Relationship relationship : relationshipList) { if (relationship.getRelatedTo().equals(relatedToValue)) { isRelatedToExists = true; break; } } } return isRelatedToExists; }  boolean isRelationshipRelatedToExists(Optional<org.onap.aai.domain.yang.L3Network> l3network,
            String relatedToValue); String getCloudRegion(BuildingBlockExecution execution, SourceSystem sourceValue);  }### Answer:
@Test public void isRelationshipRelatedToExistsTrueTest() throws Exception { final String aaiResponse = new String( Files.readAllBytes(Paths.get(JSON_FILE_LOCATION + "unassignNetworkBB_queryAAIResponse_.json"))); AAIResultWrapper aaiResultWrapper = new AAIResultWrapper(aaiResponse); Optional<L3Network> l3network = aaiResultWrapper.asBean(L3Network.class); boolean isVfModule = networkBBUtils.isRelationshipRelatedToExists(l3network, "vf-module"); assertTrue(isVfModule); }
@Test public void isRelationshipRelatedToExistsFalseTest() throws Exception { final String aaiResponse = new String(Files.readAllBytes(Paths.get(JSON_FILE_LOCATION + "queryAAIResponse.json"))); AAIResultWrapper aaiResultWrapper = new AAIResultWrapper(aaiResponse); Optional<L3Network> l3network = aaiResultWrapper.asBean(L3Network.class); boolean isVfModule = networkBBUtils.isRelationshipRelatedToExists(l3network, "vf-module"); assertFalse(isVfModule); }