### Question:
Reakt { public static <T> Callback<T> convertPromise(final Promise<T> promise) { return convertPromiseToCallback(promise, CallbackBuilder.callbackBuilder()); }  static Callback<T> convertPromise(final Promise<T> promise); static Callback<T> convertPromise(final Reactor reactor, final Promise<T> promise); static Callback<T> convertCallback(final io.advantageous.reakt.CallbackHandler<T> callback); static io.advantageous.reakt.CallbackHandler<T> convertQBitCallback(final Callback<T> callback); static Callback<T> convertCallback(final Reactor reactor,
                                                  final io.advantageous.reakt.CallbackHandler<T> callback); Callback<T> callback(final Consumer<Promise<T>> promiseConsumer);  }### Answer:
@Test public void testConvertPromiseSuccessUsingReactor() throws Exception { final AtomicReference<Employee> ref = new AtomicReference<>(); final Promise<Employee> promise = promise(); promise.then(ref::set); final Reactor reactor = ReactorBuilder.reactorBuilder().build(); final Callback<Employee> employeeCallback = convertPromise(reactor, promise); employeeCallback.resolve(new Employee("Rick")); reactor.process(); assertNotNull(ref.get()); assertTrue(promise.asHandler().complete()); assertTrue(promise.asHandler().success()); assertFalse(promise.asHandler().failure()); assertTrue(promise.asHandler().expect().isPresent()); assertEquals("Rick", promise.asHandler().expect().get().name); }