public <T extends Serializable, Method extends BotApiMethod<T>, Callback extends SentCallback<T>> void executeAsync(Method method, Callback callable) {
    try {
      CompletableFuture<T> futureResult = telegramClient.executeAsync(method);
      callable.onResult(method, futureResult.get(5, TimeUnit.SECONDS));
    } catch (TelegramApiException | ExecutionException | InterruptedException | TimeoutException e) {
      callable.onException(method, e);
    }
  }
@Test
  void callsAsyncVariantOfExecute() throws TelegramApiException {
    when(telegramClient.executeAsync(any(BotApiMethod.class))).thenReturn(CompletableFuture.completedFuture(null));

    SendMessage methodObject = new SendMessage("1234", "Text");
    NoOpCallback callback = new NoOpCallback();

    silent.executeAsync(methodObject, callback);

    verify(telegramClient, only()).executeAsync(methodObject);
  }