Could you add an "else" which raises a RuntimeException, at least then we know that it didn't register correctly.