@Test
public void givenConflictingFailedParameters_whenBuild_thenThrowsException() {

    // Given
    final int itemId = 1;
    final int failedId = 6;
    // Expect exception
    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage("failedResourceId and failedViewWillBeProvided cannot both be set");
    // When
    SectionParameters.builder()
            .itemResourceId(itemId)
            .failedResourceId(failedId)
            .failedViewWillBeProvided()
            .build();
}