Added a check to not inject a mock for inner classes.
Added a test case to verify that the behavior still works properly
for static inner classes.