@Test
public void givenSectionWithEmptyFailedResId_whenSetState_thenThrowsException() {

    // Given
    final int itemId = 1;
    @SuppressWarnings("ResourceType")
    SectionParameters sectionParameters = SectionParameters.builder()
            .itemResourceId(itemId)
            .build();
    Section section = getSection(sectionParameters);
    // Expect exception
    expectedException.expect(IllegalStateException.class);
    // When
    section.setState(State.EMPTY);
}