### Question:
OpenflowUtils { public static PortFeaturesV10 createPortFeatures(long input){ final Boolean pf10mbHd = ((input) & (1<<0)) != 0; final Boolean pf10mbFd = ((input) & (1<<1)) != 0; final Boolean pf100mbHd = ((input) & (1<<2)) != 0; final Boolean pf100mbFd = ((input) & (1<<3)) != 0; final Boolean pf1gbHd = ((input) & (1<<4)) != 0; final Boolean pf1gbFd = ((input) & (1<<5)) != 0; final Boolean pf10gbFd = ((input) & (1<<6)) != 0; final Boolean pfCopper = ((input) & (1<<7)) != 0; final Boolean pfFiber = ((input) & (1<<8)) != 0; final Boolean pfAutoneg = ((input) & (1<<9)) != 0; final Boolean pfPause = ((input) & (1<<10)) != 0; final Boolean pfPauseAsym = ((input) & (1<<11)) != 0; return new PortFeaturesV10(pf100mbFd, pf100mbHd, pf10gbFd, pf10mbFd, pf10mbHd, pf1gbFd, pf1gbHd, pfAutoneg, pfCopper, pfFiber, pfPause, pfPauseAsym); } private  OpenflowUtils(); static PortStateV10 createPortState(long input); static PortConfigV10 createPortConfig(long input); static PortFeaturesV10 createPortFeatures(long input);  }### Answer:
@Test public void testPortFeatures() { PortFeaturesV10 features = OpenflowUtils.createPortFeatures(4095L); Assert.assertEquals("Wrong port features", new PortFeaturesV10(true, true, true, true, true, true, true, true, true, true, true, true), features); features = OpenflowUtils.createPortFeatures(0L); Assert.assertEquals("Wrong port features", new PortFeaturesV10(false, false, false, false, false, false, false, false, false, false, false, false), features); }