LoggingFuturesCallBack implements FutureCallback<T> { @Override public void onSuccess(T t) { LOG.info("Success! {} ", t); } LoggingFuturesCallBack(String message, Logger LOG); @Override void onSuccess(T t); @Override void onFailure(Throwable e);  }
@Test public void testOnSuccess() throws Exception { callBack.onSuccess("test"); }