@Test(groups = {"functional.encode", "circuitSwitchedCall.primitive"}) public void testEncode() throws Exception { CauseCapImpl cause = new CauseCapImpl(this.getIntData()); TDisconnectSpecificInfoImpl elem = new TDisconnectSpecificInfoImpl(cause); AsnOutputStream aos = new AsnOutputStream(); elem.encodeAll( aos, Tag.CLASS_CONTEXT_SPECIFIC, EventSpecificInformationBCSMImpl._ID_tDisconnectSpecificInfo); assertEquals(aos.toByteArray(), this.getData()); }