@Test public void insertObjectCommandTest() throws Exception { InsertObjectCommand cmd = new InsertObjectCommand("obj", "out-id"); cmd.setReturnObject(false); cmd.setEntryPoint("entry-point"); InsertObjectCommand copyCmd = roundTrip(cmd); assertEquals( "object", cmd.getObject(), copyCmd.getObject()); assertEquals( "out id", cmd.getOutIdentifier(), copyCmd.getOutIdentifier() ); assertEquals( "return obj", cmd.isReturnObject(), copyCmd.isReturnObject() ); assertEquals( "entry point", cmd.getEntryPoint(), copyCmd.getEntryPoint() ); assertEquals( "disconnected", cmd.isDisconnected(), copyCmd.isDisconnected() ); }