PostDataKeyReplacement extends AbstractReplacement { @Override public List<ReplaceEntity> getReplacements(ScriptStep step, String searchQuery, String replaceString, SearchMode searchMode) { return getReplacementsInRequestData(step, searchQuery, replaceString, step.getPostDatas(), SearchMode.keyOnly); } PostDataKeyReplacement(); @Override List<ReplaceEntity> getReplacements(ScriptStep step, String searchQuery, String replaceString,
            SearchMode searchMode); @Override void replace(ScriptStep step, String replaceString, String key, ReplaceMode replaceMode);  }
@Test public void testGetReplacements_1() throws Exception { PostDataKeyReplacement fixture = new PostDataKeyReplacement(); ScriptStep step = new ScriptStep(); String searchQuery = ""; String replaceString = ""; SearchMode searchMode = SearchMode.all; List<ReplaceEntity> result = fixture.getReplacements(step, searchQuery, replaceString, searchMode); assertNotNull(result); assertEquals(0, result.size()); }