Application { public void setAttribute(final String name, final Object value) { attributes.put(name, value); } Application(final String id, final HttpSession session, final ApplicationConfiguration configuration); void registerUIContext(final UIContext uiContext); void deregisterUIContext(final int uiContextID); void destroy(); UIContext getUIContext(final int uiContextID); Collection<UIContext> getUIContexts(); void pushToClients(final Object message); void setAttribute(final String name, final Object value); T getAttribute(final String name); ApplicationConfiguration getOptions(); String getId(); int countUIContexts(); @Override String toString();  }
@Test public void testSetAttribute() { final String name = "A"; final String value = "B"; application.setAttribute(name, value); assertEquals(value, application.getAttribute(name)); }