### Question:
OpenflowUtils { public static PortConfigV10 createPortConfig(long input){ final Boolean pcPortDown = ((input) & (1<<0)) != 0; final Boolean pcNoStp = ((input) & (1<<1)) != 0; final Boolean pcNoRecv = ((input) & (1<<2)) != 0; final Boolean pcNoRecvStp = ((input) & (1<<3)) != 0; final Boolean pcNoFlood = ((input) & (1<<4)) != 0; final Boolean pcNoFwd = ((input) & (1<<5)) != 0; final Boolean pcNoPacketIn = ((input) & (1<<6)) != 0; return new PortConfigV10(pcNoFlood, pcNoFwd, pcNoPacketIn, pcNoRecv, pcNoRecvStp, pcNoStp, pcPortDown); } private  OpenflowUtils(); static PortStateV10 createPortState(long input); static PortConfigV10 createPortConfig(long input); static PortFeaturesV10 createPortFeatures(long input);  }### Answer:
@Test public void testPortConfig() { PortConfigV10 config = OpenflowUtils.createPortConfig(127L); Assert.assertEquals("Wrong port config", new PortConfigV10(true, true, true, true, true, true, true), config); config = OpenflowUtils.createPortConfig(0L); Assert.assertEquals("Wrong port config", new PortConfigV10(false, false, false, false, false, false, false), config); }