@Test
    public void applicationid_conversion_are_symmetric() throws Exception {

        // From appId to appRef and back
        ApplicationInstanceReference appRef = OrchestratorUtil.toApplicationInstanceReference(APPID_1, new DummyServiceMonitor());
        ApplicationId appIdRoundTrip = OrchestratorUtil.toApplicationId(appRef);

        Assert.assertEquals(APPID_1, appIdRoundTrip);

        // From appRef to appId and back
        ApplicationId appId = OrchestratorUtil.toApplicationId(APPREF_1);
        ApplicationInstanceReference appRefRoundTrip = OrchestratorUtil.toApplicationInstanceReference(appId, new DummyServiceMonitor());

        Assert.assertEquals(APPREF_1, appRefRoundTrip);
    }
Here we don't care how the internal of the different application
id/reference look like as long as we get back to exactly where we
started from a round trip. I.e I'm not testing validity of the
different representations.
orchestrator/src/test/java/com/yahoo/vespa/orchestrator/OrchestratorUtilTest.java