public JsonElement serialize(final Object src, final Type typeOfSrc) {
return new Gson().toJsonTree(src, typeOfSrc);
}
};
final JsonElement e1 = new BrowserSerializer().serialize(browser, typeOfSrc, context);
final JsonElement e2 = new BrowserSerializer().serialize(browser, typeOfSrc, context);
assertThat(e2.toString()).isEqualTo(e1.toString());
}