SimpleApplicationManager implements ApplicationManager { @Override public boolean applicationExists(String applicationId) { return applications.containsKey(applicationId); }  @Reference(type = '*', dynamic = true) void addApplication(ApplicationWrapper applicationWrapper); void removeApplication(ApplicationWrapper applicationWrapper); @Override boolean applicationExists(String applicationId); @Override Optional<Application> getApplication(String applicationId);  }
@Test public void applicationExistsTest() throws Exception { assertTrue(manager.applicationExists(ID)); assertFalse(manager.applicationExists("error")); }