@Test
public void hasPermissionWorksWithNull() {

    MockMinecraftAPI api = new MockMinecraftAPI();
    BukkitPlayer bukkitPlayer =
            new BukkitPlayer(UUID.randomUUID(), api);
    // Test a simple permission
    api.permReturnValue = null;
    assertFalse(bukkitPlayer.hasPermission("TestTrue"));
}