LibraryDef libDef = Aura.getDefinitionService().getDefinition("test:test_Library", LibraryDef.class);
assertNotNull(libDef);
ByteArrayOutputStream baos = new ByteArrayOutputStream(512);
Json json = Json.createJsonStream(baos, false, false, false);
libDef.serialize(json);
json.close();
String actual = new String(baos.toByteArray(), Charsets.UTF_8).replaceAll("\\s", "");
goldFileJson(actual);
}