### Question:
CubeKeywordRemover implements Phase1Rewriter { @Override public String rewrite(String query, Configuration queryConf, HiveConf metastoreConf) throws LensException { return query.replaceAll("(?i)cube\\s+select", "select"); }  @Override String rewrite(String query, Configuration queryConf, HiveConf metastoreConf); @Override void init(Configuration rewriteConf);  }### Answer:
@Test(dataProvider = "cubeQueryDataProvider") public void testRewrite(String userQuery, String expected) throws Exception { assertEquals(cubeKeywordRemover.rewrite(userQuery, null, null), expected); }