SpringProfileActivationStrategy extends AbstractTokenizedActivationStrategy { @Override public TokenTransformer getTokenParameterTransformer() { return new TokenTransformer() { @Override public String transform(String value) { return value.toLowerCase(); } }; }  @Override String getId(); @Override String getName(); @Override boolean isActive(FeatureState featureState, FeatureUser user, List<Token> tokens); @Override Parameter[] getParameters(); @Override String getTokenParameterName(); @Override TokenTransformer getTokenParameterTransformer(); static final String ID; static final String PARAM_PROFILES; }
@Test void testGetTokenParameterTransformer() { TokenTransformer transformer = strategy.getTokenParameterTransformer(); assertNotNull(transformer); assertEquals("foo", transformer.transform("FOO")); }