assertThat(result(), is(equalTo(expectedResult)));
}
@Test
public void shouldSerializeWithCallback() {
JSONPSerialization serialization = new GsonJSONPSerialization(response, extractor, builder, environment);
String expectedResult = "calculate({\"order\":{\"price\":15.0}})";
Order order = new Order(new Client("nykolas lima"), 15.0, "gift bags, please");
serialization.withCallback("calculate").from(order).excludeAll().include("price").serialize();
assertThat(result(), is(equalTo(expectedResult)));
}