public void removeView(String name, boolean ifExists) {
        if (relationsStorage.removeView(name) == null && !ifExists) {
            throw QueryException.error("View does not exist: " + name);
        }
    }
@Test
    public void when_removesNonExistingViewWithIfExists_then_succeeds() {
        // given
        String name = "name";

        given(relationsStorage.removeView(name)).willReturn(null);

        // when
        // then
        catalog.removeView(name, true);
        verifyNoInteractions(listener);
    }