}
@Test
public void removeAcknowledged() throws ChannelNotFoundException {
final String uaid = UUIDUtil.newUAID();
final Channel channel1 = newChannel(uaid, UUID.randomUUID().toString(), 10);
final Channel channel2 = newChannel(uaid, UUID.randomUUID().toString(), 2);
jpaDataStore.saveChannel(channel1);
jpaDataStore.saveChannel(channel2);
jpaDataStore.saveUnacknowledged(channel1.getChannelId(), 11);
jpaDataStore.saveUnacknowledged(channel2.getChannelId(), 3);
final Set<Ack> storedUpdates = jpaDataStore.getUnacknowledged(uaid);
assertThat(storedUpdates.size(), is(2));
jpaDataStore.removeAcknowledged(uaid, acks(new AckImpl(channel1.getChannelId(), 11)));
assertThat(jpaDataStore.getUnacknowledged(uaid).size(), is(1));