Mapping mapping = new Mapping();
Map<String, RowAlias> rowAliases = new TreeMap<String, RowAlias>();
mapping.setRowAlias(rowAliases);
RowAlias rowAlias = new RowAlias();
rowAlias.setValueType(new ValueType(1l, new Datastore(), "String",
"java.lang.String", false));
rowAlias.setId(1l);
rowAlias.setMapping(mapping);
rowAlias.setLength(4);
rowAlias.setAlias("Alias1");
RowAlias rowAlias1 = new RowAlias();
rowAlias1.setValueType(new ValueType(1l, new Datastore(), "String",
"java.lang.String", false));
rowAlias1.setId(2l);
rowAlias.setMapping(mapping);
rowAlias.setLength(5);
rowAlias.setAlias("Alias2");