@Test
public void testLoginUrl() throws Exception {

    PropertyUtil.addProperty("auth.login.url", "/login");
    final ActionParameters params = createActionParams();
    handler.handleAction(params);
    JSONObject responseUrls = getResponseJSON().optJSONObject("env").optJSONObject("urls");
    assertEquals("Should have login url", "/login", responseUrls.opt("login"));
    assertNull("Should NOT have register url as allow.registration not set", responseUrls.opt("register"));
    teardown();
    addLocales();
}