DefaultClearner implements Cleaner { @Override public String cleanArg(String arg) { String angularvar = "(,\"\\$\\$\\w+\":\".*\")"; return arg.replaceAll(angularvar, ""); }  @Override String cleanArg(String arg);  }
@Test public void testCleanArg() { System.out.println("cleanArg"); String arg = "{\"v\":\"toto\",\"$$hashKey\":\"5\"}"; DefaultClearner instance = new DefaultClearner(); String expResult = "{\"v\":\"toto\"}"; String result = instance.cleanArg(arg); assertThat(result).isEqualTo(expResult); }