@Test(expected=UnsupportedOperationException.class)
public void shouldBeImmutable() {

    //should that also be the case, or left to the responsability of the caller?
    //attributes.put("attr3", "attr3");
    //assertNull(toTest.getAttribute("attr3"));
    
    toTest.getAttributes().put("a", "b");
}