LiveDataSubscriptionRequest request = new LiveDataSubscriptionRequest(
user,
SubscriptionType.SNAPSHOT,
Collections.singleton(requestedSpec));
LiveDataSubscriptionResponseMsg response = _server.subscriptionRequestMade(request);
assertEquals(user, response.getRequestingUser());
assertEquals(1, response.getResponses().size());
assertEquals(requestedSpec, response.getResponses().get(0).getRequestedSpecification());
assertNull(response.getResponses().get(0).getFullyQualifiedSpecification());
assertEquals(LiveDataSubscriptionResult.INTERNAL_ERROR, response.getResponses().get(0).getSubscriptionResult());
assertNull(response.getResponses().get(0).getSnapshot());
assertNull(response.getResponses().get(0).getTickDistributionSpecification());
assertEquals("When snapshot for testsub was run through normalization, the message disappeared. " +
"This indicates there are buggy normalization rules in place, or that buggy (or unexpected) data was " +
"received from the underlying market data API. Check your normalization rules. " +
"Raw, unnormalized msg = FudgeMsg[]",
response.getResponses().get(0).getUserMessage());
assertFalse(_server.unsubscribe("testsub"));
}