Can't this be unit tested just by invoking using different mock Contexts returning different LocalPaths and invoking the SuppressReconnect method to check whether the returned results are as expected? This is what the change seems to be about. The test below seems to be more E2E that possibly tests the code you have changed (honestly it is hard to tell from this test it is really targeting the change you made - e.g. would the test fail if we returned always true from the SuppressReconnect method).