@Test(expected = NoSuchAttributeException.class)
public void testComputeAttributeException() {

    TilesContainer container = createMock(TilesContainer.class);
    AttributeContext attributeContext = createMock(AttributeContext.class);
    Request request = createMock(Request.class);
    expect(container.getAttributeContext(request)).andReturn(attributeContext);
    expect(attributeContext.getAttribute("myName")).andReturn(null);
    replay(container, attributeContext, request);
    resolver.computeAttribute(container, null, "myName", null, false, null,
            "defaultRole", "defaultType", request);
    verify(container, attributeContext, request);
}