@Test public void basics() { Application app = new DefaultApplication(APP_ID, VER, DESC, ORIGIN, ROLE, PERMS, Optional.of(FURL), FEATURES); assertEquals("incorrect id", APP_ID, app.id()); assertEquals("incorrect version", VER, app.version()); assertEquals("incorrect description", DESC, app.description()); assertEquals("incorrect origin", ORIGIN, app.origin()); assertEquals("incorrect role", ROLE, app.role()); assertEquals("incorrect permissions", PERMS, app.permissions()); assertEquals("incorrect features repo", FURL, app.featuresRepo().get()); assertEquals("incorrect features", FEATURES, app.features()); assertTrue("incorrect toString", app.toString().contains(APP_NAME)); }