### Question:
MySqlDataBaseFullDumpCommand implements DbDumpCommand { @Override public void execute(OutputStream output) throws SQLException, IOException { DbDumpCommand oneCommand = null; while ((oneCommand = dumpCommandQueue.poll()) != null) { oneCommand.execute(output); } } MySqlDataBaseFullDumpCommand(List<DbTable> dbTableList); @Override void execute(OutputStream output);  }### Answer:
@Test public void executeRunsAllCommandsInCorrectOrder() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SQLException, IOException { getAccessibleDumpCommandQueueField().set(sut, getFakeCommandQueue()); OutputStream output = new ByteArrayOutputStream(); sut.execute(output); assertEquals("123", output.toString()); }