Registry { @SuppressWarnings("unchecked") protected final <T> T get(Class<T> type) { assert lookupTable.has(type) : "Tried to lookup type " + type.getName() + " but no instance has been registered"; return (T) lookupTable.get(type); } Registry(); MessageSender getMessageSender(); MessageHandler getMessageHandler(); LoadingIndicator getLoadingIndicator(); ApplicationConnection getApplicationConnection(); Heartbeat getHeartbeat(); ConnectionStateHandler getConnectionStateHandler(); ServerRpcQueue getServerRpcQueue(); ApplicationConfiguration getApplicationConfiguration(); StateTree getStateTree(); PushConfiguration getPushConfiguration(); XhrConnection getXhrConnection(); URIResolver getURIResolver(); DependencyLoader getDependencyLoader(); SystemErrorHandler getSystemErrorHandler(); UILifecycle getUILifecycle(); RequestResponseTracker getRequestResponseTracker(); ReconnectDialogConfiguration getReconnectDialogConfiguration(); ExecuteJavaScriptProcessor getExecuteJavaScriptProcessor(); ServerConnector getServerConnector(); ResourceLoader getResourceLoader(); ConstantPool getConstantPool(); ScrollPositionHandler getScrollPositionHandler(); ExistingElementMap getExistingElementMap(); InitialPropertiesHandler getInitialPropertiesHandler(); Poller getPoller();  }
@Test(expected = AssertionError.class) public void getUndefined() { Registry registry = new Registry(); registry.get(StateTree.class); }