Program: 177780
Project: 177780
Buggy source:
@SuppressWarnings("String_Node_Str") @UsesMocks({SocializeConfig.class,MockContext.class,Intent.class}) public void test_registerC2DM(){
  final String senderId="String_Node_Str";
  final String legacy_senderId="String_Node_Str";
  NotificationRegistrationState notificationRegistrationState=AndroidMock.createMock(NotificationRegistrationState.class);
  SocializeConfig config=AndroidMock.createMock(SocializeConfig.class);
  MockContext context=AndroidMock.createNiceMock(MockContext.class);
  final Intent registrationIntent=AndroidMock.createMock(Intent.class);
  AndroidMock.expect(notificationRegistrationState.isC2dmPending()).andReturn(false);
  notificationRegistrationState.setC2dmPendingRequestTime(AndroidMock.anyLong());
  notificationRegistrationState.save(context);
  AndroidMock.expect(config.getProperty(SocializeConfig.SOCIALIZE_C2DM_SENDER_ID)).andReturn(legacy_senderId);
  AndroidMock.expect(config.getProperty(SocializeConfig.SOCIALIZE_GCM_SENDER_ID,legacy_senderId)).andReturn(senderId);
  AndroidMock.expect(registrationIntent.putExtra(SocializeNotificationRegistrationSystem.EXTRA_APPLICATION_PENDING_INTENT,(PendingIntent)null)).andReturn(registrationIntent);
  AndroidMock.expect(registrationIntent.putExtra(SocializeNotificationRegistrationSystem.EXTRA_SENDER,senderId)).andReturn(registrationIntent);
  AndroidMock.expect(context.startService(registrationIntent)).andReturn(null);
  AndroidMock.replay(notificationRegistrationState,config,context,registrationIntent);
  SocializeNotificationRegistrationSystem system=new SocializeNotificationRegistrationSystem(){
    @Override public boolean isRegisteredC2DM(){
      return false;
    }
    @Override protected Intent newIntent(    String action){
      return registrationIntent;
    }
    @Override protected PendingIntent newPendingIntent(    Context context){
      return null;
    }
  }
;
  system.setConfig(config);
  system.setNotificationRegistrationState(notificationRegistrationState);
  system.registerC2DM(context);
  AndroidMock.verify(notificationRegistrationState,config,context,registrationIntent);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @UsesMocks({SocializeConfig.class,MockContext.class,Intent.class}) public void test_registerC2DM(){
  final String senderId="String_Node_Str";
  final String legacy_senderId="String_Node_Str";
  NotificationRegistrationState notificationRegistrationState=AndroidMock.createMock(NotificationRegistrationState.class);
  SocializeConfig config=AndroidMock.createMock(SocializeConfig.class);
  MockContext context=AndroidMock.createNiceMock(MockContext.class);
  final Intent registrationIntent=AndroidMock.createMock(Intent.class);
  AndroidMock.expect(notificationRegistrationState.isC2dmPending()).andReturn(false);
  notificationRegistrationState.setC2dmPendingRequestTime(AndroidMock.anyLong());
  notificationRegistrationState.save(context);
  AndroidMock.expect(config.getProperty(SocializeConfig.SOCIALIZE_C2DM_SENDER_ID)).andReturn(legacy_senderId);
  AndroidMock.expect(config.getProperty(SocializeConfig.SOCIALIZE_GCM_SENDER_ID,legacy_senderId)).andReturn(senderId);
  AndroidMock.expect(config.getProperty(SocializeConfig.SOCIALIZE_CUSTOM_GCM_SENDER_ID)).andReturn(null);
  AndroidMock.expect(registrationIntent.putExtra(SocializeNotificationRegistrationSystem.EXTRA_APPLICATION_PENDING_INTENT,(PendingIntent)null)).andReturn(registrationIntent);
  AndroidMock.expect(registrationIntent.putExtra(SocializeNotificationRegistrationSystem.EXTRA_SENDER,senderId)).andReturn(registrationIntent);
  AndroidMock.expect(context.startService(registrationIntent)).andReturn(null);
  AndroidMock.replay(notificationRegistrationState,config,context,registrationIntent);
  SocializeNotificationRegistrationSystem system=new SocializeNotificationRegistrationSystem(){
    @Override public boolean isRegisteredC2DM(){
      return false;
    }
    @Override protected Intent newIntent(    String action){
      return registrationIntent;
    }
    @Override protected PendingIntent newPendingIntent(    Context context){
      return null;
    }
  }
;
  system.setConfig(config);
  system.setNotificationRegistrationState(notificationRegistrationState);
  system.registerC2DM(context);
  AndroidMock.verify(notificationRegistrationState,config,context,registrationIntent);
}