  @Test
  public void testInvalidFieldName() {

    Content testContent = contentRepository.getContent("8");
    IssuesImpl<Content> issues = new IssuesImpl<>(testContent, testContent.getProperties().keySet());
    formEditorValidator.validate(testContent, issues);
    // Ensure, all expected validation errors occurred.
    String key = "formData.formElements.TextField.name";

    assertEquals(1, issues.getByProperty().get(key).size());
    Issue<Content> issue = new Issue<>(testContent, Severity.ERROR, key, "formField_missing_name", Collections.singletonList("TextField"));
    assertThat(issues.getByProperty().get(key), hasItem(issue));
  }