In my opinion you should avoid writing tests that depend on the Mockito's default return values. If returning null is an important part of the behavior that the test describes then it should be declared explicitly, i.e:
MyClass mock = mock(MyClass.class);
when(mock.getId()).thenReturn(null);
//or a one-liner (only if it makes sense!):
MyClass oneLiner = when(mock(MyClass.class).getId()).thenReturn(null).getMock();
You can change the default return values either on mock creation via MockSettings or globally via MockitoConfiguration. However, I think this is not the way to go in your use case.
If the returning null is important -> make that explicit in the test.
Hope that helps!
--
Szczepan Faber
Principal engineer@gradleware
Lead@mockito