public static ApplicationId from(ApplicationIdConfig config) {
        return from(TenantName.from(config.tenant()),
                    ApplicationName.from(config.application()),
                    InstanceName.from(config.instance()));
    }
@Test
    void require_that_compare_to_is_correct() {
        new TotalOrderTester<ApplicationId>()
                               .theseObjects(from("tenant1", "name1", "instance1"),
                                                      from("tenant1", "name1", "instance1"))
                               .areLessThan(from("tenant2", "name1", "instance1"))
                               .areLessThan(from("tenant2", "name2", "instance1"))
                               .areLessThan(from("tenant2", "name2", "instance2"))
                               .testOrdering();
    }