@Test
public void isExpressionValue() {

    AbstractFormItem<String> noExpression = formItem(false);
    assertFalse(noExpression.isExpressionValue());
    noExpression.setValue("${foo:bar}");
    assertFalse(noExpression.isExpressionValue());
    noExpression.setExpressionValue("${foo:bar}");
    assertFalse(noExpression.isExpressionValue());
    AbstractFormItem<String> expression = formItem(true);
    assertFalse(expression.isExpressionValue());
    expression.setValue("${foo:bar}");
    assertFalse(expression.isExpressionValue());
    expression.setExpressionValue("${foo:bar}");
    assertTrue(expression.isExpressionValue());
}