SaltConfigs { @SuppressWarnings({ "unchecked", "rawtypes" }) public static void addLaunchAttributes(EntitySpec<?> entity, Map<?,?> attributesMap) { entity.configure(SaltConfig.SALT_SSH_LAUNCH_ATTRIBUTES, MapModifications.add((Map)attributesMap)); }  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 testAddLaunchAttributes() { app = TestApplication.Factory.newManagedInstanceForTests(); SaltConfigs.addLaunchAttributes(app, ImmutableMap.of("k1", "v1")); Map<String, Object> attribs = app.getConfig(SaltConfig.SALT_SSH_LAUNCH_ATTRIBUTES); Assert.assertEquals(attribs, ImmutableMap.of("k1", "v1")); }