  @Test
  public void wrong_keyword() throws Exception {

    UastNode caseNode = node(Sets.newHashSet(UastNode.Kind.DEFAULT_CASE, UastNode.Kind.CASE),
      keyword("case"),
      token(":"));
    UastNode node = node(UastNode.Kind.SWITCH, caseNode);

    Validator.ValidationException exception = assertThrows(Validator.ValidationException.class, () -> validate(node));
    assertThat(exception.getMessage()).isEqualTo("DefaultCaseValidator at line 1: Expected 'default' as keyword but got 'case'.");
  }