@Test
public void testDropKeyIfExistWhenThreeKeysAreSupplied() throws Exception {

    Connection conn = connectionMock;
    String tableName = "tableName";
    String key1 = "key1";
    String key2 = "key2";
    List<String> keys = Arrays.asList(new String[] {key1, key2});
    boolean isForeignKey = false;
    DbUpgradeUtils.dropKeysIfExist(conn, tableName, keys, isForeignKey);
    verify(daoMock, times(1)).dropKey(conn, tableName, key1, isForeignKey);
    verify(daoMock, times(1)).dropKey(conn, tableName, key2, isForeignKey);
}