public void canAccessAnother()

in component-test/src/main/java/TestAccessAnother.java [168:181]


  public void canAccessAnother()
  {
    try (final AutoUserContext ignored = integrationTestEnvironment.createAutoUserContext(USER_NAME)) {
      Assert.assertFalse(another.api().getFoo());
    }

    mockIdentityManagerInteraction();
    try (final AutoUserContext ignored = tenantApplicationSecurityEnvironment.createAutoUserContext("blah")) {
      accessAnother.createDummy();
    }
    try (final AutoUserContext ignored = integrationTestEnvironment.createAutoUserContext("blah")) {
      Assert.assertTrue(another.api().getFoo());
    }
  }