@Test
public void testAsyncCacheLoad() throws Throwable {

    server.setPlayer(testPlayer);
    server.setScheduler(new WorkingScheduler());
    final Waiter waiter = new Waiter();
    new Thread(() -> {
        BukkitPlayer player = api.getAuthorById(testPlayer.getUniqueId());
        waiter.assertEquals(player.getId(), testPlayer.getUniqueId());
        waiter.resume();
    }).start();
    waiter.await(1000);
    assertEquals(testPlayer.getUniqueId(), api.getAuthorById(testPlayer.getUniqueId()).getId());
}