### Question:
FramedIPAddressAttribute extends Attribute { public boolean isSpecified() { return (!this.isNasSelected()) && (!this.isUserNegotiated()); } FramedIPAddressAttribute(Type type, int msb, int msb2, int msb3, int msb4);  FramedIPAddressAttribute(byte[] octets); boolean isUserNegotiated(); boolean isNasSelected(); boolean isSpecified(); byte[] getAddress(); String toStringImpl();  }### Answer:
@Test public void testIsSpecified() { FramedIPAddressAttribute a; a = new FramedIPAddressAttribute(FramedIPAddressAttribute.Type.SPECIFIED, 192, 168, 1, 3); Assert.assertFalse(a.isUserNegotiated()); Assert.assertFalse(a.isNasSelected()); Assert.assertTrue(a.isSpecified()); Assert.assertEquals(a.getAddress()[0], (byte) 192); Assert.assertEquals(a.getAddress()[1], (byte) 168); Assert.assertEquals(a.getAddress()[2], (byte) 1); Assert.assertEquals(a.getAddress()[3], (byte) 3); }