code: public JNDIContentRepositoryBuilder withSecurityPrincipal(final String principalName, final String credentials) {
  
          contextProperties.put(Context.SECURITY_PRINCIPAL, principalName);
          contextProperties.put(Context.SECURITY_CREDENTIALS, credentials);
          return this;
      }
docs: Sets the context properties for SECURITY_PRINCIPAL and SECURITY_CREDENTIAL to perform the lookup. This method is
  a convenience for setting the properties SECURITY_PRINCIPAL and SECURITY_CREDENTIAL on the environment.
  
  @param principalName
  the principal name to use to perform the lookup
  @param credentials
  the credentials used to authenticate the principal
  @return this test rule