@Test
@SuppressWarnings("unchecked")
public void testGcmError() throws Exception {

	final IOException ioe = new IOException("boom");
	new Expectations() {{
		gcmService.send((Message) any, (List) any, anyInt);
		result = ioe;
	}};
	sender.onNewDataComplete();
	Assert.assertEquals(SenderResult.Status.ERROR, sender.getSenderResult().getStatus());
	Assert.assertEquals(ioe, sender.getSenderResult().getErrorCause());
}