@Test public void testCopy() { Detach detach = new Detach(); Detach copyOf = detach.copy(); assertNull(copyOf.getError()); detach.setError(new ErrorCondition()); detach.setClosed(true); detach.setHandle(UnsignedInteger.ONE); copyOf = detach.copy(); assertNotNull(copyOf.getError()); assertEquals(detach.getClosed(), copyOf.getClosed()); assertEquals(detach.getHandle(), copyOf.getHandle()); }
@Override public Detach copy() { return new Detach(this); }
Detach implements FrameBody { @Override public Detach copy() { return new Detach(this); } }
Detach implements FrameBody { @Override public Detach copy() { return new Detach(this); } Detach();  Detach(Detach other); }
Detach implements FrameBody { @Override public Detach copy() { return new Detach(this); } Detach();  Detach(Detach other); UnsignedInteger getHandle(); void setHandle(UnsignedInteger handle); boolean getClosed(); void setClosed(boolean closed); ErrorCondition getError(); void setError(ErrorCondition error); @Override void invoke(FrameBodyHandler<E> handler, Binary payload, E context); @Override String toString(); @Override Detach copy(); }
Detach implements FrameBody { @Override public Detach copy() { return new Detach(this); } Detach();  Detach(Detach other); UnsignedInteger getHandle(); void setHandle(UnsignedInteger handle); boolean getClosed(); void setClosed(boolean closed); ErrorCondition getError(); void setError(ErrorCondition error); @Override void invoke(FrameBodyHandler<E> handler, Binary payload, E context); @Override String toString(); @Override Detach copy();  }