"\"internal\": {\"type\": \"dummy\"}}}");
DetermineMetadataDirective d = new DetermineMetadataDirective();
d.getFlags().configFilename = "moe_config.txt";
d.getFlags().repositoryExpression = "internal(revision=\"1,2\")";
assertEquals(0, d.perform());
RevisionMetadata rm = new RevisionMetadata("1, 2", "author, author", "date, date",
"description\n-------------\ndescription",
ImmutableList.of(new Revision("parent", "internal"),
new Revision("parent", "internal")));
assertEquals(rm.toString(), ((RecordingUi) AppContext.RUN.ui).lastInfo);
}