Source:
public void testMultipleIntentFilter_sameKey_noOverride ( ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String main = "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application>\n" ) + " <activity android:name=\"activityOne\">\n" ) + " <intent-filter>\n" ) + " <action android:name=\"android.intent.action.VIEW\"/>\n" ) + " <category android:name=\"android.intent.category.DEFAULT\"/>\n" ) + " <category android:name=\"android.intent.category.BROWSABLE\"/>\n" ) + " <data android:scheme=\"myspecialdeeplinkscheme\"/>\n" ) + " <data android:host=\"home\"/>\n" ) + " </intent-filter>\n" ) + " <intent-filter>\n" ) + " <action android:name=\"android.intent.action.VIEW\"/>\n" ) + " <category android:name=\"android.intent.category.DEFAULT\"/>\n" ) + " <category android:name=\"android.intent.category.BROWSABLE\"/>\n" ) + " <data android:scheme=\"https\"/>\n" ) + " <data android:host=\"www.foo.com\"/>\n" ) + " </intent-filter>\n" ) + " </activity>\n" ) + " </application>" ) + "\n" ) + "</manifest>" ) ; java.lang.String library = "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " xmlns:acme=\"http://acme.org/schemas\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application>\n" ) + " <activity android:name=\"activityOne\">\n" ) + " <intent-filter>\n" ) + " <action android:name=\"android.intent.action.SEARCH\" />\n" ) + " </intent-filter>\n" ) + " </activity>" ) + " </application>" ) + " <uses-sdk android:targetSdkVersion=\"3\"/>\n" ) + "\n" ) + "</manifest>" ) ; com.android.manifmerger.XmlDocument mainDocument = com.android.manifmerger.TestUtils.xmlDocumentFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "main" ) , main ) ; com.android.manifmerger.XmlDocument libraryDocument = com.android.manifmerger.TestUtils.xmlDocumentFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "library" ) , library ) ; com.android.manifmerger.MergingReport.Builder mergingReportBuilder = new com.android.manifmerger.MergingReport.Builder ( mLogger ) ; com.google.common.base.Optional < com.android.manifmerger.XmlDocument > mergedDocument = mainDocument.merge ( libraryDocument , mergingReportBuilder ) ; assertTrue ( mergedDocument.isPresent ( ) ) ; com.android.manifmerger.XmlDocument xmlDocument = mergedDocument.get ( ) ; java.util.List < com.android.manifmerger.XmlElement > allIntentFilters = com.android.manifmerger.XmlDocumentTest.getAllElementsOfType ( xmlDocument , ManifestModel.NodeTypes.INTENT_FILTER ) ; assertEquals ( 3 , allIntentFilters.size ( ) ) ; }

Target:
public void testMultipleIntentFilter_sameKey_noOverride ( ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String main = "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application>\n" ) + " <activity android:name=\"activityOne\">\n" ) + " <intent-filter>\n" ) + " <action android:name=\"android.intent.action.VIEW\"/>\n" ) + " <category android:name=\"android.intent.category.DEFAULT\"/>\n" ) + " <category android:name=\"android.intent.category.BROWSABLE\"/>\n" ) + " <data android:scheme=\"myspecialdeeplinkscheme\"/>\n" ) + " <data android:host=\"home\"/>\n" ) + " </intent-filter>\n" ) + " <intent-filter>\n" ) + " <action android:name=\"android.intent.action.VIEW\"/>\n" ) + " <category android:name=\"android.intent.category.DEFAULT\"/>\n" ) + " <category android:name=\"android.intent.category.BROWSABLE\"/>\n" ) + " <data android:scheme=\"https\"/>\n" ) + " <data android:host=\"www.foo.com\"/>\n" ) + " </intent-filter>\n" ) + " </activity>\n" ) + " </application>" ) + "\n" ) + "</manifest>" ) ; java.lang.String library = "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " xmlns:acme=\"http://acme.org/schemas\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application>\n" ) + " <activity android:name=\"activityOne\">\n" ) + " <intent-filter>\n" ) + " <action android:name=\"android.intent.action.SEARCH\" />\n" ) + " </intent-filter>\n" ) + " </activity>" ) + " </application>" ) + " <uses-sdk android:targetSdkVersion=\"3\"/>\n" ) + "\n" ) + "</manifest>" ) ; com.android.manifmerger.XmlDocument mainDocument = com.android.manifmerger.TestUtils.xmlDocumentFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "main" ) , main ) ; com.android.manifmerger.XmlDocument libraryDocument = com.android.manifmerger.TestUtils.xmlLibraryFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "library" ) , library ) ; com.android.manifmerger.MergingReport.Builder mergingReportBuilder = new com.android.manifmerger.MergingReport.Builder ( mLogger ) ; com.google.common.base.Optional < com.android.manifmerger.XmlDocument > mergedDocument = mainDocument.merge ( libraryDocument , mergingReportBuilder ) ; assertTrue ( mergedDocument.isPresent ( ) ) ; com.android.manifmerger.XmlDocument xmlDocument = mergedDocument.get ( ) ; java.util.List < com.android.manifmerger.XmlElement > allIntentFilters = com.android.manifmerger.XmlDocumentTest.getAllElementsOfType ( xmlDocument , ManifestModel.NodeTypes.INTENT_FILTER ) ; assertEquals ( 3 , allIntentFilters.size ( ) ) ; }