@Test
public void testHashCodeWithNullResultType() {

    List<String> qualifyingNames = Collections.singletonList( "mapstruct" );
    SelectionParameters params = new SelectionParameters( null, qualifyingNames, null, null );
    assertThat( params.hashCode() )
        .as( "ResultType nulls hashCode" )
        .isEqualTo( ( 3 * 97 + qualifyingNames.hashCode() ) * 97 );
}