new_contents: # Copyright (c) 2014, The MITRE Corporation. All rights reserved.
  # See LICENSE.txt for complete terms.
  
  import unittest
  
  from cybox.objects.memory_object import Memory
  from cybox.test.common.hash_test import EMPTY_MD5
  from cybox.test.objects import ObjectTestCase
  
  
  class TestMemory(ObjectTestCase, unittest.TestCase):
      object_type = "MemoryObjectType"
      klass = Memory
  
      _full_dict = {
          'is_injected': True,
          'is_mapped': False,
          'is_protected': True,
          'is_volatile': False,
          'hashes': [{'type': u"MD5", 'simple_hash_value': EMPTY_MD5}],
          'name': u"A memory region",
          'region_size': 65536L,
          'memory_source': u".data",
          'block_type': u"Free",
          'region_start_address': u"00040000",
          'region_end_address': u"00048000",
          'extracted_features': {'functions': [u"StringA", u"StringB"]},
          'xsi:type': object_type,
      }
  
  
  if __name__ == "__main__":
      unittest.main()
  
subject: Add test for MemoryObject