@Test
public void toggleRowExpansion() {

    doReturn(true).when(collectionEditorViewImplSpy).isShown();
    collectionEditorViewImplSpy.toggleRowExpansion();
    verify(collectionEditorViewImplSpy, times(1)).toggleRowExpansion(false);
    reset(collectionEditorViewImplSpy);
    doReturn(false).when(collectionEditorViewImplSpy).isShown();
    collectionEditorViewImplSpy.toggleRowExpansion();
    verify(collectionEditorViewImplSpy, times(1)).toggleRowExpansion(true);
}