...
- The class under test should be marked with @InjectMocks even if now @Mock no @Mock fields are going to be injected. This is because before every test method execution, this field will be reset.
- The inner class has to extend the outer test class. This is needed to access the in this example the cache field.