@Test
public void testURLsWithRegistrationAllowed() throws Exception {

    PropertyUtil.addProperty("allow.registration", "true");
    final ActionParameters params = createActionParams();
    handler.handleAction(params);
    JSONObject responseUrls = getResponseJSON().optJSONObject("env").optJSONObject("urls");
    assertEquals("Should have default register url", "/user", responseUrls.opt("register"));
    assertEquals("Should have default profile url", "/user", responseUrls.opt("profile"));
    teardown();
    addLocales();
}