/** A unit test for JUnit */ public void testExecute() { try { builder.execute(msg); } catch (Exception e) { e.printStackTrace(); } String query0 = "Insert into OtherTestTable ( NoField, sequence_field ) values ( 256.3652, 6 )"; assertEquals("Query was not built and inserted into the MsgObject", query0, msg.getQuery()[0]); String query1 = "Insert into TestTable ( FirstField, SecondField ) values ( 1, 'testing string' )"; assertEquals("Query was not built and inserted into the MsgObject", query1, msg.getQuery()[1]); }