code: def testFindConfigFile(self, getConfigPaths):
      prefix, _, filename = self.files["nupic-default.xml"].rpartition(
          os.sep
      )
  
      def replacePaths(**_):
          return [prefix]
  
      getConfigPaths.side_effect = replacePaths
      configuration.Configuration.clear()
      result = configuration.Configuration.findConfigFile(filename)
      self.assertTrue(result == self.files["nupic-default.xml"])
      getConfigPaths.assert_called_with()
  
imports: from copy import copy
  import os
  import shutil
  from StringIO import StringIO
  import sys
  import tempfile
  import unittest2
  import uuid
  from pkg_resources import resource_filename
  from mock import Mock, patch
  from pkg_resources import resource_filename
  from xml.parsers.expat import ExpatError
  import nupic
  import nupic.support.configuration_custom
  import configuration_test
label_desc: Use image node_id 38 for calling the ConfigurationCustomTest obj's underlying member method code with example usage: obj.testFindConfigFile(getConfigPaths) and returns: list