@Test
public void testGetSystemExceptionShouldReturnWithNullWhenExceptionCauseNotContainSystemException() {

    //GIVEN
    given(beanCreationException.getMostSpecificCause()).willReturn(applicationException);
    given(beanCreationException.getCause()).willReturn(applicationException, applicationException);
    //WHEN
    SystemException actual = underTest.getSystemException(beanCreationException);
    //THEN
    assertNull(actual);
}