@Test
public void testGetSystemExceptionShouldReturnWithNullWhenExceptionCauseIsNull() {

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