public void test_registerC2DMAsync() throws Exception {

    final CountDownLatch latch = new CountDownLatch(1);

    SocializeNotificationRegistrationSystem system =
        new SocializeNotificationRegistrationSystem() {
          @Override
          public synchronized void registerC2DM(Context context) {
            latch.countDown();
          }
        };

    system.registerC2DMAsync(getContext());

    assertTrue(latch.await(10, TimeUnit.SECONDS));
  }