* Make sure additive properties coming back from the javascript do not break when
* we deserialize.
*/
@Test
public void additivePropertiesCanStillDeserialize() {
JsRunner mockRunner = mock(JsRunner.class);
compliance = new ComplianceRules(mockRunner,
entCurator, new StatusReasonMessageGenerator(i18n), eventSinkProvider,
consumerCurator);
when(mockRunner.runJsFunction(any(Class.class), eq("get_status"),
any(JsContext.class))).thenReturn("{\"unknown\": \"thing\"}");
Consumer c = mockConsumerWithTwoProductsAndNoEntitlements();
// Nothing to assert here, we just need to see this return without error.
compliance.getStatus(c, TestUtil.createDate(2011, 8, 30));