@Test(expected = IllegalArgumentException.class)
public void applyTo_canNotOverrideSystemAttribute() throws Exception {

  AttributesDTO attributes = new AttributesDTO();
  attributes.getAttributes().add(new AttributeDTO(ItemAttributesResource.SYSTEM_ATTR_PREFIX + "foo", "bar"));
  Attributes target = mock(Attributes.class);
  ItemAttributesResource.applyTo(attributes, target);
  verifyNoMoreInteractions(target);
}