LlcpConnectionManager implements Llcp { public AbstractProtocolDataUnit onLlcpActive() { messageToSend = new Symmetry(); handlePendingConnectionTimeout(); if (pendingConnections.isEmpty()) { serviceDiscovery.onLlcpActive(this); for (Entry<Integer, ServiceAccessPoint> entry : services.entrySet()) { ServiceAccessPoint serviceAccessPoint = entry.getValue(); serviceAccessPoint.onLlcpActive(this); } if (messageToSend instanceof Symmetry) { for (LlcpSocket llcpSocket : openConnections.values()) { llcpSocket.onConnectionActive(); messageToSend = handleMessageToSend(llcpSocket); } } } return messageToSend; }  void registerWellKnownServiceAccessPoint(String serviceName, ServiceAccessPoint serviceAccessPoint); void registerServiceAccessPoint(ServiceAccessPoint serviceAccessPoint); void registerServiceAccessPoint(int serviceAddress, ServiceAccessPoint serviceAccessPoint); void clearConnections(); ServiceAccessPoint getServiceAccessPoint(int address, String serviceName); Collection<Object> getParameter(); AbstractProtocolDataUnit onLlcpActive(); AbstractProtocolDataUnit onConnectComplete(int remoteAddress, int localAddress, Object[] parameters); @Override void connectToService(String serviceName, ServiceAccessPoint serviceAccessPoint); @Override void connectToService(int serviceAddress, ServiceAccessPoint serviceAccessPoint); AbstractProtocolDataUnit onSendConfirmed(int remoteAddress, int localAddress, int receivedSequence); AbstractProtocolDataUnit onConnect(int remoteAddress, int localAddress, Object[] parameters); void init(Object[] parameters); int getOpenConnectionsSize(); AbstractProtocolDataUnit onReceiveInformation(int remoteAddress, int localAddress, int received, int send,
			byte[] serviceDataUnit); AbstractProtocolDataUnit onDisconnect(int remoteAddress, int localAddress); AbstractProtocolDataUnit onDisconnectedMode(int remoteAddress, int localAddress, int reason);  }
@Test public void testSymmetryOnIdle() throws Exception { AbstractProtocolDataUnit protocolDataUnit = connectionManager.onLlcpActive(); assertTrue(protocolDataUnit instanceof Symmetry); }