'Check result subjects have same format as original calls.'

def testMultiResolvePrefixTypePreservation(self):

    rows = ['aff4:/row:str', u'aff4:/row:unicode', rdfvalue.RDFURN('aff4:/row:URN'), 'aff4:/row:str', u'aff4:/row:unicode', rdfvalue.RDFURN('aff4:/row:URN')]
    i = 0
    for row_name in rows:
        timestamp = rdfvalue.RDFDatetime((1000 + i))
        data_store.DB.Set(row_name, ('metadata:%s' % i), i, timestamp=timestamp, token=self.token)
        i += 1
    subjects = dict(data_store.DB.MultiResolvePrefix(rows, ['metadata:0', 'metadata:2', 'metadata:4'], token=self.token))
    self.assertEqual(set([type(s) for s in subjects]), set([type(s) for s in rows]))
    self.assertIn(rows[0], subjects)
    self.assertIn(rows[2], subjects)
    self.assertIn(rows[4], subjects)
