<BUG>when(underlying.authorize(anyObject(), anyString())).thenReturn(true);}</BUG><CONTEXT>private final Principal principal2 = new PrincipalImpl("principal2");private final Principal principal3 = new PrincipalImpl("principal3");private final String role = "popular_kids";@Beforepublic void setUp() throws Exception {<extra_id_0>@Testpublic void cachesTheFirstReturnedPrincipal() throws Exception {assertThat(cached.authorize(principal, role)).isTrue();</CONTEXT>
when(underlying.authorize(any(), anyString())).thenReturn(true);}