### Question:
MSQLiteBuilder { List<String> getStatements(int oldVersion, int newVersion) { List<String> result = new ArrayList<>(); for (int i = oldVersion + 1; i <= newVersion; ++i) { List<String> list = statementsMap.get(i); if (list != null) { result.addAll(list); } } return result; }  MSQLiteBuilder version(int version); MSQLiteBuilder createTable(String table); MSQLiteBuilder createTable(String table, String column, Class clazz); MSQLiteBuilder dropTable(String table); MSQLiteBuilder insertColumn(String table, String column, Class clazz); MSQLiteBuilder statement(String statement); SQLiteOpenHelper build(Context context, String name, int version); static final String COLUMN_ID; }### Answer:
@Test public void testGetStatements() { MSQLiteBuilder builder = new MSQLiteBuilder() .version(1) .statement("11") .statement("12") .version(3) .statement("31") .statement("32"); List<String> list = new ArrayList<>(); list.add("31"); list.add("32"); assertEquals(list, builder.getStatements(1, 3)); }