@Test
public void testGetAttribute() {

    Session delegate = mock(Session.class);
    SessionFacade<Session> facade = getFacade(delegate);
    final String attrName = "myAttr";
    final String attrValue = "value";
    when(delegate.getAttribute(attrName)).thenReturn(attrValue);
    assertNull("unknown attr return null", facade.getAttribute("some other attr"));
    assertSame("get value for known attr", attrValue, facade.getAttribute(attrName));
}