ClassifierHandler { public boolean usesLogicalInterfaces(ServiceFunctionForwarder theSff) { return theSff.getSffDataPlaneLocator() == null; }  String buildFlowKeyName(String scfName, String aclName, String aceName, String type); Optional<String> getInterfaceNameFromClassifier(SclServiceFunctionForwarder theClassifier); FlowDetails deleteFlowFromTable(String nodeName, String flowKey, short tableID); FlowDetails addRspRelatedFlowIntoNode(String nodeName, FlowBuilder flow, long rspId); boolean usesLogicalInterfaces(ServiceFunctionForwarder theSff); Optional<Acl> extractAcl(ServiceFunctionClassifier scf);  }
@Test public void usesLogicalInterfacesLogicalSff() { when(sff.getSffDataPlaneLocator()).thenReturn(null); Assert.assertTrue(handler.usesLogicalInterfaces(sff)); }
@Test public void usesLogicalInterfacesLegacySff() { when(sff.getSffDataPlaneLocator()).thenReturn(new ArrayList<>()); Assert.assertFalse(handler.usesLogicalInterfaces(sff)); }