    @Test(expectedExceptions = ArrayIndexOutOfBoundsException.class)
    public void testSetTypeWithInvalidIndex() {

        AttributesImpl attributes = new AttributesImpl();
        String type = "type";
        attributes.setType(1, type);
    }