WteExpression { protected void parse(String aInput) { expressionString = aInput; int cursor = 0; cursor = parseFormatter(cursor); contentKey = expressionString.substring(cursor).trim(); }  void setExpressionString(String value); String getExpressionString(); String getContentKey(); String getFormattername(); List<String> getFormatterArgs(); @Override String toString();  }
@Test public void simpleExpression() { parser.parse("format:formatter"); assertParser("", "formatter", 0); }
@Test public void parseExpressionWithNoArgs() { parser.parse("format:formatter gugus"); assertParser("gugus", "formatter", 0); }
@Test public void parseeExpressionWithEmptyArgs() { parser.parse("format:formatter() gugus"); assertParser("gugus", "formatter", 0); }
@Test public void parseNonFormatter() { parser.parse("test:gugus"); assertParser("test:gugus", null, 0); }