BwmonitorImpl implements AltoBwmonitorService { public void close() { if (bwFetchingService != null) { bwFetchingService.close(); } LOG.info("BwmonitorImpl closed"); } BwmonitorImpl(DataBroker dataBroker); @Override Future<RpcResult<BwmonitorSubscribeOutput>> bwmonitorSubscribe(BwmonitorSubscribeInput input); @Override Future<RpcResult<BwmonitorQueryOutput>> bwmonitorQuery(BwmonitorQueryInput input); @Override Future<RpcResult<BwmonitorUnsubscribeOutput>> bwmonitorUnsubscribe(BwmonitorUnsubscribeInput input); void close();  }
@Test public void testClose() throws Exception { service1.close(); }