@Test
public void testClaimsWithRoles() {

    final boolean containsRole;
    final List<LinkedHashMap<String, String>> roles = new ArrayList<>();
    final LinkedHashMap<String, String> linkedHashMap = new LinkedHashMap<>();
    linkedHashMap.put(ROLE, ROLE);
    roles.add(linkedHashMap);
    final Map<String, Object> map = new HashMap<>();
    map.put("roles", roles);
    final Claims claims = Jwts.claims(map);
    Mockito.when(mockHttpServletRequest.getAttribute(JwtFilter.ATTRIBUTE_CLAIMS)).thenReturn(claims);
    containsRole = userController.claimContainsRole(ROLE, mockHttpServletRequest);
    assertTrue(containsRole);
    Mockito.verify(mockHttpServletRequest).getAttribute(JwtFilter.ATTRIBUTE_CLAIMS);
}