static void assertMapsEqual(Map<String, Object> expected, Map<String, Object> actual)
throws Exception {
for (Map.Entry<String, Object> entry : expected.entrySet()) {
if (entry.getKey().equalsIgnoreCase("format_options")) {
FormatOptionsKvpParser parser = new FormatOptionsKvpParser();
Map expectedFormatOptions = (Map) parser.parse((String) entry.getValue());
Map actualFormatOptions = (Map) parser.parse((String) actual.get(entry.getKey()));
for (Object o : expectedFormatOptions.entrySet()) {
Map.Entry formatOption = (Map.Entry) o;
assertEquals(formatOption.getValue(),
actualFormatOptions.get(formatOption.getKey()));