@Test
public void debugExceptionLevelShouldLogToDebugIfEnabled() {

    when(logMock.isDebugEnabled()).thenReturn(true);
    mavenLogger.debug(new OutOfMemoryError("Ta daa!"));
    verify(logMock).isDebugEnabled();
    verify(logMock).debug(any(OutOfMemoryError.class));
    verifyNoMoreInteractions(logMock);
}