@Test
public void checkLocalMappingPerformance(TestContext context) {

    Set<String> roles = new HashSet<>();
    roles.add("domain1-user-stage-prod");
    Map<String, RoleMapper.MappedRole> mappedRoles;
    long startTime = System.currentTimeMillis();
    System.out.println("Start: " + startTime);
    for (int i = 0; i < 10000; i++) {
        mappedRoles = roleMapper.mapRoles(roles);
        if (i == 0) {  // only necessary to be executed once
            context.assertNotNull(mappedRoles);
            context.assertTrue(mappedRoles.size() == 3);
            context.assertTrue(mappedRoles.get("domain1-user-stage-prod").forward == false);
            context.assertTrue(mappedRoles.get("domain1-user").forward == false);
            context.assertTrue(mappedRoles.get("domain1").forward == true);
        }
    }
    long endTime = System.currentTimeMillis();
    long duration = endTime - startTime;
    System.out.println("End: " + startTime);
    System.out.println("Duration: " + duration);
}