@Test
public void givenSection_whenGetFooterView_thenThrowsException() {

    // Given
    final int itemId = 1;
    @SuppressWarnings("ResourceType")
    SectionParameters sectionParameters = SectionParameters.builder()
            .itemResourceId(itemId)
            .build();
    Section section = getSection(sectionParameters);
    // Expect exception
    expectedException.expect(UnsupportedOperationException.class);
    expectedException.expectMessage("You need to implement getFooterView() if you set footerViewWillBeProvided");
    // When
    section.getFooterView(null);
}