@Test
public void getId() {

    when(readOnlyAppearance.getId()).thenReturn("test-read-only");
    when(editingAppearance.getId()).thenReturn("test-editing");
    AbstractFormItem<String> formItem = formItem(false);
    assertEquals("test-read-only", formItem.getId(Form.State.READONLY));
    assertEquals("test-editing", formItem.getId(Form.State.EDITING));
}