public void testAddPackage2(){
  try {
    IWapPushManager iwapman=getInterface();
    iwapman.addPackage(Integer.toString(mAppIdValue),Integer.toString(mContentTypeValue),mPackageName,mClassName,0,false,false);
    iwapman.addPackage(Integer.toString(mAppIdValue + 10),Integer.toString(mContentTypeValue),mPackageName,mClassName,0,false,false);
    iwapman.addPackage(Integer.toString(mAppIdValue),Integer.toString(mContentTypeValue + 10),mPackageName,mClassName,0,false,false);
    assertFalse(iwapman.addPackage(Integer.toString(mAppIdValue),Integer.toString(mContentTypeValue),mPackageName,mClassName,0,false,false));
    assertFalse(iwapman.addPackage(Integer.toString(mAppIdValue + 10),Integer.toString(mContentTypeValue),mPackageName,mClassName,0,false,false));
    assertFalse(iwapman.addPackage(Integer.toString(mAppIdValue),Integer.toString(mContentTypeValue + 10),mPackageName,mClassName,0,false,false));
    iwapman.deletePackage(Integer.toString(mAppIdValue),Integer.toString(mContentTypeValue),mPackageName,mClassName);
    iwapman.deletePackage(Integer.toString(mAppIdValue + 10),Integer.toString(mContentTypeValue),mPackageName,mClassName);
    iwapman.deletePackage(Integer.toString(mAppIdValue),Integer.toString(mContentTypeValue + 10),mPackageName,mClassName);
  }
 catch (  RemoteException e) {
    assertTrue(false);
  }
}

public void testAddPackage2 ( ) { try { IWapPushManager iwapman = getInterface ( ) ; iwapman . addPackage ( Integer . toString ( mAppIdValue ) , Integer . toString ( mContentTypeValue ) , mPackageName , mClassName , 0 , false , false ) ; iwapman . addPackage ( Integer . toString ( mAppIdValue + 10 ) , Integer . toString ( mContentTypeValue ) , mPackageName , mClassName , 0 , false , false ) ; iwapman . addPackage ( Integer . toString ( mAppIdValue ) , Integer . toString ( mContentTypeValue + 10 ) , mPackageName , mClassName , 0 , false , false ) ; assertFalse ( iwapman . addPackage ( Integer . toString ( mAppIdValue ) , Integer . toString ( mContentTypeValue ) , mPackageName , mClassName , 0 , false , false ) ) ; assertFalse ( iwapman . addPackage ( Integer . toString ( mAppIdValue + 10 ) , Integer . toString ( mContentTypeValue ) , mPackageName , mClassName , 0 , false , false ) ) ; assertFalse ( iwapman . addPackage ( Integer . toString ( mAppIdValue ) , Integer . toString ( mContentTypeValue + 10 ) , mPackageName , mClassName , 0 , false , false ) ) ; iwapman . deletePackage ( Integer . toString ( mAppIdValue ) , Integer . toString ( mContentTypeValue ) , mPackageName , mClassName ) ; iwapman . deletePackage ( Integer . toString ( mAppIdValue + 10 ) , Integer . toString ( mContentTypeValue ) , mPackageName , mClassName ) ; iwapman . deletePackage ( Integer . toString ( mAppIdValue ) , Integer . toString ( mContentTypeValue + 10 ) , mPackageName , mClassName ) ; } catch ( RemoteException e ) { assertTrue ( false ) ; } }
add duprecated package test .
