@Test
public void viewTypeInConflictWithFallbackDelegate() {

    try {
        AdapterDelegatesManager<List> manager = new AdapterDelegatesManager<>();
        manager.addDelegate(AdapterDelegatesManager.FALLBACK_DELEGATE_VIEW_TYPE,
                new SpyableAdapterDelegate<List>(0));
        Assert.fail(
                "An exception should be thrown because view type integer is already reserved for fallback delegate");
    } catch (IllegalArgumentException e) {
        Assert.assertEquals("The view type = "
                        + AdapterDelegatesManager.FALLBACK_DELEGATE_VIEW_TYPE
                        + " is reserved for fallback adapter delegate (see setFallbackDelegate() ). Please use another view type.",
                e.getMessage());
    }
}