I am trying to test a Spring boot service method using JUnit 4 and Mockito. For some reason the test fails with a NPE whenever a jdbcTemplate call is made. I mocked NamedP