VariableSpace scope = new VariableSpace();
r.add(new Field("test"));
r.get("test").setValue("NAgy HAjnalka");
SetCharacterCase scc = new SetCharacterCase();
scc.setCase(CharacterCase.Lowercase);
scc.setCharacters(CharacterTarget.ALL);
scc.setApplyTo(Arrays.asList(new String[] { "test" }));
scc.apply(r, scope);
scc.setCase(CharacterCase.Uppercase);
scc.setCharacters(CharacterTarget.TOKEN_INITIALS_NON_ALNUM);
scc.setApplyTo(Arrays.asList(new String[] { "test" }));
scc.apply(r, scope);
Assert.assertEquals("Nagy Hajnalka", r.get("test").getValue());
}