@Test
public void onUpgradeFromV18() {

    final int oldVersion = 18;
    final int newVersion = DatabaseHelper.DATABASE_VERSION;
    final TableDefaultsCustomizer customizer = mock(TableDefaultsCustomizer.class);
    mPaymentMethodsTable.onUpgrade(mSQLiteDatabase, oldVersion, newVersion, customizer);
    verify(mSQLiteDatabase, atLeastOnce()).execSQL(mSqlCaptor.capture());
    verify(customizer, never()).insertPaymentMethodDefaults(mPaymentMethodsTable);
    final List<String> allValues = mSqlCaptor.getAllValues();
    assertEquals(2, allValues.size());
    assertEquals(allValues.get(0), "ALTER TABLE " + mPaymentMethodsTable.getTableName() + " ADD entity_uuid TEXT");
}