SaltConfigs { public static void addToFormulas(EntitySpec<?> entity, String formulaUrl) { entity.configure(SaltConfig.SALT_FORMULAS, SetModifications.addItem(formulaUrl)); }  static void addToRunList(EntitySpec<?> entity, String...states); static void addToRunList(EntityInternal entity, String...states); @SuppressWarnings({ "unchecked", "rawtypes" }) static void addLaunchAttributes(EntitySpec<?> entity, Map<?,?> attributesMap); @SuppressWarnings({ "unchecked", "rawtypes" }) static void addLaunchAttributes(EntityInternal entity, Map<?,?> attributesMap); static void addToFormulas(EntitySpec<?> entity, String formulaUrl); static void addToFormulas(EntityInternal entity, String formulaUrl); static T getRequiredConfig(Entity entity, ConfigKey<T> key);  }
@Test public void testAddToFormulas() { app = TestApplication.Factory.newManagedInstanceForTests(); SaltConfigs.addToFormulas(app, "v1"); SaltConfigs.addToFormulas(app, "v2"); final Set<? extends String> formulas = app.getConfig(SaltConfig.SALT_FORMULAS); Assert.assertEquals(formulas, ImmutableSet.of("v1", "v2")); }