private HttpResponse getTenant(RestApi.RequestContext context) {
        TenantName name = TenantName.from(context.pathParameters().getStringOrThrow("tenant"));
        if ( ! tenantRepository.checkThatTenantExists(name))
            throw new RestApiException.NotFound("Tenant '" + name + "' was not found.");

        return new TenantGetResponse(name);
    }
@Test
    public void testTenantCreateWithAllPossibleCharactersInName() throws Exception {
        TenantName tenantName = TenantName.from("aB-9999_foo");
        assertNull(tenantRepository.getTenant(tenantName));
        assertResponse(PUT, "/application/v2/tenant/aB-9999_foo",
                       "{\"message\":\"Tenant " + tenantName + " created.\"}");
    }