'Test that we can construct RDFProtos with nested fields.'

def testComplexConstruction(self):

    pathspec = rdf_paths.PathSpec(path='/foobar', pathtype=rdf_paths.PathSpec.PathType.TSK)
    sample = rdf_client.StatEntry(pathspec=pathspec, st_size=5)
    self.assertEqual(sample.pathspec.path, '/foobar')
    self.assertEqual(sample.st_size, 5)
    self.assertRaises(AttributeError, rdf_client.StatEntry, foobar=1)
