TunnelIdentity { public Channel getBackend() { return backend; } TunnelIdentity(Channel frontend, String destination, String source); Channel getFrontend(); TunnelIdentity setFrontend(Channel frontend); Channel getBackend(); TunnelIdentity setBackend(Channel backend); String getDestination(); TunnelIdentity setDestination(String destination); @Override String toString();  }
@Test public void testBackendNotNull() throws Exception { buildChain(); Tunnel tunnel = proxy1.getTunnelManager().tunnels().get(0); TunnelIdentity identity = tunnel.identity(); Assert.assertNotNull(identity.getBackend()); }