@Override
    public View inflate(@LayoutRes final int layoutResourceId, final ViewGroup parent) {
        final View view = mock(View.class);
        when(view.getTag()).thenReturn(layoutResourceId);
        return view;
    }
Fake implementation of the adapter that returns a dummy view when inflate method is called.
library/src/test/java/io/github/luizgrp/sectionedrecyclerviewadapter/tools/DummyViewAdapterFake.java