SfcScfMatch { public SfcScfMatch setPortMatch(NodeConnectorId port) { if (port != null) { mb.setInPort(port); } return this; } SfcScfMatch(); SfcScfMatch setPortMatch(NodeConnectorId port); SfcScfMatch setAclMatch(Matches matches); Match build();  }
@Test public void testSetPortMatch() { Match match; match = new SfcScfMatch() .setPortMatch(null) .build(); Assert.assertNull(match.getInPort()); NodeConnectorId inPort = new NodeConnectorId("1"); match = new SfcScfMatch() .setPortMatch(inPort) .build(); Assert.assertEquals(match.getInPort(), inPort); }