Add unit test for NamedQueryRules
Add mockito for unit test, add the first failed test.