RuntimeInfoServiceImpl implements RuntimeInfoService { @Override public DashbuilderRuntimeInfo info() { return new DashbuilderRuntimeInfo(registry.getMode().name(), registry.availableModels(), registry.acceptingNewImports()); }  @Override DashbuilderRuntimeInfo info(); @Override Optional<DashboardInfo> dashboardInfo(String modelId);  }
@Test public void testInfo() { DashbuilderRuntimeInfo info = runtimeInfoService.info(); assertEquals(1, info.getAvailableModels().size()); assertTrue(info.getAvailableModels().contains(RUNTIME_MODEL_ID)); assertEquals(MULTIPLE_IMPORT.name(), info.getMode()); assertFalse(info.isAcceptingNewImports()); }