SetupTunnelTask implements Callable<Object> { @Override public Boolean call() throws Exception { peer.setupTunnels( p2pIps, new EnvironmentId( environmentId ) ); return true; } SetupTunnelTask( final Peer peer, final String environmentId, final P2pIps p2pIps ); @Override Boolean call();  }
@Test public void testCall() throws Exception { task.call(); verify( PEER ).setupTunnels( p2pIps, TestHelper.ENVIRONMENT_ID ); }