I have a compile problem which is strange. I am not able to fix this. The same peice of code works fine in another project
org.mockito.Mockito.when(jdbcTemplate.
Since BeanPropertyRowMapper is a generic interface, you should invoke any() like this:
any()
Mockito.when(jdbcTemplate.query(Matchers.anyString(), Matchers.>any())).thenReturn(SOMELIST);