@Test
public void notificationVersionEqualToCurrentVersion() throws Exception {
final String uaid = UUIDUtil.newUAID();
final String channelId = UUID.randomUUID().toString();
final SimplePushServer simplePushServer = defaultPushServer();
final EmbeddedChannel channel = createWebsocketChannel(simplePushServer);
registerUserAgent(uaid, channel);
final RegisterResponse registerResponse = doRegister(channelId, uaid, simplePushServer);
final String endpointToken = extractEndpointToken(registerResponse.getPushEndpoint());
doNotification(endpointToken, channelId, 1L, simplePushServer, channel);
final HttpResponse response = sendNotification(notificationRequest(endpointToken, 1L), simplePushServer);
assertThat(response.getStatus(), is(HttpResponseStatus.OK));
channel.close();
}