  @Test
  public void testMutableDefinedAttributes() {

    doReturn(ImmutableList.of("attr1", "attr2", "builtIn1", "builtIn2"))
        .when(entity).getMutableAttributeNames();
    addEntity(entity);
    assertTrue(validator.validate(context, entity, root).isEmpty());
  }