def METHOD_NAME(self, mock_createRemoveFileCommand):
    self.GFAL2Impl.stageIn = True
    mock_createRemoveFileCommand.return_value = "targetPFN2"
    result = self.GFAL2Impl.createStageOutCommand("sourcePFN", "targetPFN")
    expectedResult = self.getStageOutCommandResult(
        self.getCopyCommandDict("-K adler32", "", "sourcePFN", "targetPFN"), "targetPFN2")
    mock_createRemoveFileCommand.assert_called_with("targetPFN")
    self.assertEqual(expectedResult, result)