static JsonNode renderApplicationConfigs(ApplicationMetadataConfig metaConfig,
                                      ApplicationUserdataConfig userConfig) {
        ObjectNode vespa = jsonMapper.createObjectNode();
        vespa.put("version", Vtag.currentVersion.toString());

        ObjectNode meta = jsonMapper.createObjectNode();
        meta.put("name", metaConfig.name());
        meta.put("user", metaConfig.user());
        meta.put("path", metaConfig.path());
        meta.put("generation", metaConfig.generation());
        meta.put("timestamp", metaConfig.timestamp());
        meta.put("date", new Date(metaConfig.timestamp()).toString());
        meta.put("checksum", metaConfig.checksum());

        ObjectNode user = jsonMapper.createObjectNode();
        user.put("version", userConfig.version());

        ObjectNode application = jsonMapper.createObjectNode();
        application.set("vespa", vespa);
        application.set("meta", meta);
        application.set("user", user);
        return application;
    }
@Test
    void application_configs_are_rendered()  {
        ApplicationMetadataConfig metaConfig = new ApplicationMetadataConfig(
                new ApplicationMetadataConfig.Builder()
                        .checksum("abc")
                        .name("app")
                        .path("/a/b/c")
                        .timestamp(3000)
                        .user("donald"));

        ApplicationUserdataConfig userConfig = new ApplicationUserdataConfig(
                new ApplicationUserdataConfig.Builder()
                        .version("v1"));

        String json = ApplicationStatusHandler.renderApplicationConfigs(metaConfig, userConfig).toString();
        assertTrue(json.contains("version"));
        assertTrue(json.contains("meta"));
        assertTrue(json.contains("abc"));
        assertTrue(json.contains("app"));
        assertTrue(json.contains("/a/b/c"));
        assertTrue(json.contains("3000"));
        assertTrue(json.contains("donald"));

        assertTrue(json.contains("v1"));
    }