ApplicationApiImpl implements ApplicationApi { @Override public ApplicationId applicationId() { return OrchestratorUtil.toApplicationId(applicationInstance.reference()); } ApplicationApiImpl(NodeGroup nodeGroup,
                              ApplicationLock lock,
                              ClusterControllerClientFactory clusterControllerClientFactory,
                              int numberOfConfigServers, Clock clock); @Override ApplicationId applicationId(); @Override List<ClusterApi> getClusters(); @Override List<StorageNode> getSuspendedStorageNodesInGroupInReverseClusterOrder(); @Override NodeGroup getNodeGroup(); @Override List<StorageNode> getStorageNodesInGroupInClusterOrder(); @Override List<StorageNode> getUpStorageNodesInGroupInClusterOrder(); @Override ApplicationInstanceStatus getApplicationStatus(); @Override void setHostState(OrchestratorContext context, HostName hostName, HostStatus status); @Override List<HostName> getNodesInGroupWith(Predicate<HostStatus> statusPredicate);  }
@Test public void testApplicationId() { ApplicationApi applicationApi = modelUtils.createApplicationApiImpl(modelUtils.createApplicationInstance(new ArrayList<>())); assertEquals("tenant:application-name:default", applicationApi.applicationId().serializedForm()); }