Use mocks so that CharacterFilter is tested in isolation