@Test
public void testGetVCs() {

    connectionSetup();
    Iterator<SdxL2ConnectionPoint> lhs = setupLhsCPs().iterator();
    Iterator<SdxL2ConnectionPoint> rhs = setupRhsCPs().iterator();
    Set<String> expectedVCs = Sets.newHashSet();
    String vc;
    String lhsName;
    String rhsName;
    while (lhs.hasNext()) {
        lhsName = lhs.next().name();
        rhsName = rhs.next().name();
        vc = lhsName.compareTo(rhsName) < 0 ?
                format(SdxL2VCManager.NAME_FORMAT, SDXL2_2, lhsName, rhsName) :
                format(SdxL2VCManager.NAME_FORMAT, SDXL2_2, rhsName, lhsName);
        expectedVCs.add(vc);
    }
    Set<String> vcs = manager.getVCs(Optional.of(SDXL2_2));
    assertEquals(expectedVCs, vcs);
    vcs = manager.getVCs(Optional.of(SDXL2_1));
    assertEquals(Collections.emptySet(), vcs);
    vcs = manager.getVCs(Optional.empty());
    assertEquals(expectedVCs, vcs);
}