@Test
public void givenConflictingLoadingParameters_whenBuild_thenThrowsException() {

    // Given
    final int itemId = 1;
    final int loadingId = 5;
    // Expect exception
    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage("loadingResourceId and loadingViewWillBeProvided cannot both be set");
    // When
    SectionParameters.builder()
            .itemResourceId(itemId)
            .loadingResourceId(loadingId)
            .loadingViewWillBeProvided()
            .build();
}