DbUpgradeUtils { public static void dropPrimaryKeyIfExists(Connection conn, String tableName) { dao.dropPrimaryKey(conn, tableName); }  static void dropKeysIfExist(Connection conn, String tableName, List<String> keys, boolean isForeignKey); static void dropPrimaryKeyIfExists(Connection conn, String tableName); static void dropTableColumnsIfExist(Connection conn, String tableName, List<String> columns);  }
@Test public void testDropPrimaryKey() throws Exception { Connection conn = connectionMock; String tableName = "tableName"; DbUpgradeUtils.dropPrimaryKeyIfExists(conn, tableName); verify(daoMock, times(1)).dropPrimaryKey(conn, tableName); }