@Test
public void testAssumeRoleResourceMatchRoleNoMatch() {

    Assertion assertion = new Assertion()
            .setAction("assume_role")
            .setEffect(AssertionEffect.ALLOW)
            .setRole("domain1:role.role1")
            .setResource("domain1:role.role2");
    assertFalse(AuthzHelper.assumeRoleResourceMatch("domain1:role.role1", assertion));
    assertion = new Assertion()
            .setAction("assume_role")
            .setEffect(AssertionEffect.ALLOW)
            .setRole("domain1:role.role1")
            .setResource("domain2:role.role1");
    assertFalse(AuthzHelper.assumeRoleResourceMatch("domain1:role.role1", assertion));
    assertion = new Assertion()
            .setAction("assume_role")
            .setEffect(AssertionEffect.ALLOW)
            .setRole("domain1:role.role1")
            .setResource("domain1:role.reader*");
    assertFalse(AuthzHelper.assumeRoleResourceMatch("domain1:role.role1", assertion));
    assertion = new Assertion()
            .setAction("assume_role")
            .setEffect(AssertionEffect.ALLOW)
            .setRole("domain1:role.role1")
            .setResource("*:role.role2");
    assertFalse(AuthzHelper.assumeRoleResourceMatch("domain1:role.role1", assertion));
}