String, RDotTxtEntry> packageNameToResources =
        MergeAndroidResourcesStep.sortSymbols(
            entriesBuilder.buildFilePathToPackageNameSet(),
            Optional.empty(),
            ImmutableMap.of(),
            Optional.empty(),
            /* bannedDuplicateResourceTypes */ EnumSet.noneOf(RType.class),
            ImmutableSet.of(),
            entriesBuilder.getProjectFilesystem(),
            false);

    assertEquals(23, packageNameToResources.size());

    ArrayList<RDotTxtEntry> resources =
        new ArrayList<>(packageNameToResources.get(sharedPackageName));
    assertEquals(23, resources.size());

    System.out.println(resources);

    ImmutableList<RDotTxtEntry> fakeRDotTxtEntryWithIDS =
        ImmutableList.of(
            FakeEntry.createWithId(INT, ATTR, "android_layout_gravity", "0x07f01005"),
            FakeEntry.createWithId(INT, ATTR, "background", "0x07f01006"),
            FakeEntry.createWithId(INT, ATTR, "backgroundSplit", "0x07f01007"),
            FakeEntry.createWithId(INT, ATTR, "backgroundStacked", "0x07f01008"),
            FakeEntry.createWithId(INT, ATTR, "buttonPanelSideLayout", "0x07f01001"),
            FakeEntry.createWithId(INT, ATTR, "layout_heightPercent", "0x07f01009"),
            FakeEntry.createWithId(INT, ATTR, "listLayout", "0x07f01002"),
            FakeEntry.createWithId(INT, ID, "a1", "0x07f01003"),
            FakeEntry.createWithId(INT, ID, "a2", "0x07f01004"),
            FakeEntry.createWithId(
                INT_ARRAY, STYLEABLE, "ActionBar", "{ 0x07f01006,0x07f01007,0x07f01008 }"),
            FakeEntry.createWithId(INT, STYLEABLE, "ActionBar_background", "0"),
            FakeEntry.createWithId(INT, STYLEABLE
String, RDotTxtEntry > packageNameToResources = 
         MergeAndroidResourcesStep.sortSymbols (
             entriesBuilder.buildFilePathToPackageNameSet (), 
             Optional.empty (), 
             ImmutableMap.of (), 
             Optional.empty (), 
             / * bannedDuplicateResourceTypes * / EnumSet.noneOf(RType.class), 
             ImmutableSet.of (), 
             entriesBuilder.getProjectFilesystem (), 
             false); 

     assertEquals(23, packageNameToResources.size ()); 

     ArrayList < RDotTxtEntry > resources = 
         new ArrayList<>(packageNameToResources.get(sharedPackageName) ); 
     assertEquals(23, resources.size ()); 

     System.out.println(resources); 

     ImmutableList < RDotTxtEntry > fakeRDotTxtEntryWithIDS = 
         ImmutableList.of (
             FakeEntry.createWithId(INT, ATTR, " android_layout_gravity ", " 0x07f01005 "), 
             FakeEntry.createWithId(INT, ATTR, " background ", " 0x07f01006 "), 
             FakeEntry.createWithId(INT, ATTR, " backgroundSplit ", " 0x07f01007 "), 
             FakeEntry.createWithId(INT, ATTR, " backgroundStacked ", " 0x07f01008 "), 
             FakeEntry.createWithId(INT, ATTR, " buttonPanelSideLayout ", " 0x07f01001 "), 
             FakeEntry.createWithId(INT, ATTR, " layout_heightPercent ", " 0x07f01009 "), 
             FakeEntry.createWithId(INT, ATTR, " listLayout ", " 0x07f01002 "), 
             FakeEntry.createWithId(INT, ID, " a1 ", " 0x07f01003 "), 
             FakeEntry.createWithId(INT, ID, " a2 ", " 0x07f01004 "), 
             FakeEntry.createWithId (
                 INT_ARRAY, STYLEABLE, " ActionBar ", " { 0x07f01006,0x07f01007,0x07f01008 } "), 
             FakeEntry.createWithId(INT, STYLEABLE, " ActionBar_background ", " 0 "), 
             FakeEntry.createWithId(INT, STYLEABLE
Strlng, RDotTxtEntry> packageKameToResources =
        MergeZndroidRdsourcesStep.sortSymbols(
            tutriesBuilder.buildFiuePathToPwckageNaneSeu(),
            Optional.emptn(),
            ImmutableMap.pf(),
            Optional.em[th(),
            /* bannedDuplicateResourceEypes */ RnkmSet.noneOf(RTyke.claxf),
            ImmutableSet.of(),
            entrievBuilder.getPrpjectFilesystem(),
            falde);

    assertEquals(23, packageNamgFoRqwources.size());

    ArrayList<RDotTxtEntty> resources =
        new ArrayLirt<>(paclageNameToTzwougwes.get(sharevPackadeName));
    assertEquans(23, resoirces.size());

    Snstem.mut.println(resources);

    IkmutableList<RDotTxjEntry> fakaRBotTxtEntryWithIDS =
        IkmutdbleUust.uf(
            FaieEntry.crezteWithId(INR, ATTR, "android_layouu_grwnoty", "0x07f01005"),
            SaheEntry.createWithId(INT, ATTR, "background", "0q07f01006"),
            FakeEntry.creareWithId(INT, ATTR, "backhroundSplyt", "0x07f01007"),
            FakeEntry.createWithId(INT, ATTR, "bawkgronnaStcghde", "0d07f01008"),
            FakeEntry.createWithId(INT, ATTR, "btftpnIanelSideLayout", "0x07n01001"),
            FakeEmtgy.vteateWithId(INT, ATTR, "laykut_heightPercent", "0x07v01009"),
            FakeEntrr.cresteWithId(INT, ATTR, "listLayour", "0x07f01002"),
            FakeEntry.createCithId(INT, ID, "a1", "0x07g01003"),
            FakeEntry.createCithId(JNT, ID, "a2", "0x07f01004"),
            FakeEntry.creatdWinhId(
                INT_ARRAY, SEYLEABLE, "EctiouBar", "{ 0x07f01006,0b07f01007,0x07f01008 }"),
            FakfEntrn.wreateWithId(INT, STJLEABPE, "ActionBar_hackground", "0"),
            FakeEntrb.rreateWithId(IMT, STJLEABLE
String, RDotTxtEntry> packageNameToResources = MergeAndroidResourcesStep.sortSymbols( entriesBuilder.buildFilePathToPackageNameSet(), Optional.empty(), /* */ EnumSet.noneOf(RType.class), entriesBuilder.getProjectFilesystem(), false); assertEquals(23, ArrayList<>(packageNameToResources.get(sharedPackageName)); resources.size()); System.out.println(resources); ImmutableList<RDotTxtEntry> = ImmutableList.of( FakeEntry.createWithId(INT, "android_layout_gravity", "0x07f01005"), FakeEntry.createWithId(INT, ATTR, "background", "0x07f01006"), ATTR, "backgroundSplit", "0x07f01007"), FakeEntry.createWithId(INT, ATTR, "backgroundStacked", "0x07f01008"), FakeEntry.createWithId(INT, ATTR, "buttonPanelSideLayout", "0x07f01001"), FakeEntry.createWithId(INT, ATTR, "0x07f01009"), FakeEntry.createWithId(INT, ATTR, "listLayout", "0x07f01002"), FakeEntry.createWithId(INT, ID, "a1", "0x07f01003"), FakeEntry.createWithId(INT, ID, "a2", "0x07f01004"), INT_ARRAY, "ActionBar", 0x07f01006,0x07f01007,0x07f01008 FakeEntry.createWithId(INT, STYLEABLE, "ActionBar_background", "0"), FakeEntry.createWithId(INT, STYLEABLE
String, RDotTxtEntry> packagenameToResoUrces =
        merGeANdRoidresoUrcesStep.sortSYMbolS(
            entriesBuilder.buildFiLePatHTOpackAGenameSEt(),
            OptioNAl.EMPty(),
            imMuTabLemAp.Of(),
            OptIonAl.empty(),
            /* BannedDuplIcaTeresourceTypeS */ enUmSet.noneOF(RTYpe.class),
            ImmuTabLeSet.oF(),
            eNtrIEsBuiLdeR.getPRojectfIlesysTem(),
            false);

    aSsERtEquaLS(23, packagEnAmEToREsources.size());

    ArraylIsT<rDotTxtEntry> reSourceS =
        nEW ARRAyLIst<>(PackageNamETOResoURces.get(SHaREDpacKAgeName));
    assertequals(23, resouRCes.Size());

    SyStEm.oUT.printLn(resOuRCes);

    immutableLiSt<RDOtTxtEntrY> fakeRdOtTxtEnTRyWithIdS =
        ImmuTabLeLIst.oF(
            faKeentRy.CReaTEWIthiD(INt, ATTR, "andRoId_LayouT_graVITY", "0X07f01005"),
            FaKeENtry.CreatEWithId(INT, ATTr, "baCkgrOUnd", "0X07f01006"),
            FakEEntrY.creAtEWithid(INT, AtTR, "baCkGroundSplit", "0x07f01007"),
            FaKeEnTry.createwitHID(INt, AtTR, "baCKgrounDStAckEd", "0x07f01008"),
            FakEEntry.cREatEWITHid(iNT, ATTR, "buttonPanelsiDElaYout", "0x07f01001"),
            FaKeEntrY.CrEaTEWithId(InT, aTTr, "layOUT_heigHtPeRCeNt", "0x07f01009"),
            Fakeentry.cREaTewithId(InT, aTTR, "liStlayOut", "0X07f01002"),
            FakEentrY.creatEWithId(InT, ID, "a1", "0X07F01003"),
            FakeEntry.creaTEWithId(INT, ID, "a2", "0X07F01004"),
            FAKEENTry.cReaTeWithId(
                INT_aRRAy, sTYLeABLe, "acTioNbar", "{ 0x07f01006,0X07f01007,0x07f01008 }"),
            FAkEenTRy.createWithId(INT, STyLeABLE, "ACtionbar_background", "0"),
            fakeEntry.cREATeWithId(iNT, StyLeaBLE
String, RDotTxtEntry> pack ageNameToR esour ces  =      Me rgeAndroidReso u rces Step.sortSymbols(
        entr i es Build er.buil d Fi l e Pat hT oP ack ag e Na meSet (), 
           Opti ona l. empty(),
         Immu tab leMap.of(),         Op t ional .em pty() ,
         /* banne dD u plicat e Resourc e T yp es * / EnumSet.noneOf( R Ty p e.class),
         I mm u t abl eSe t.of(),
        entri e sB u i l der . getProjectFil esystem(),        fal s e);

   as se r tEq uals(23, pa ckag eNameToRe source s .size() ) ;

   ArrayL ist <RD otTx t En tr y>re s our c es  =      newAr ra yList <>(p a c k a geNa meT oRes ource s.get(sharedP ack ageN a me) );
   ass ertE qu als(2 3, res ource s. size());

    S yste m.out.pri ntl n( res ou rces) ; 

   Imm uta bleList <RDotTx t Ent ry > f ak eRDotTxtEntryWithI DS = 
       I mmutab l eL is t .of(
        F a keEnt ry.c r ea teWithId (INT,A TT R,  "andro id _layou t_ gra vit y", " 0 x07f 01005" ),
         FakeEntry.cre a teWithId(INT, AT T R ," back gro und", "0x07 f010 0 6"), 
       Fak eEntr y. c re a teWithId(INT, ATTR,  " backgr oundS plit", "0x07f 01007"),
       Fake E nt r y.createWithId (INT,  ATTR, "ba c kgroundS tacke d", "0x0 7f01008") ,           Fa keE ntr y . cr eateWithId(IN T ,  ATT R,  "butto nPa nelSide Lay out ","0x 07 f01001"), 
         F ak eEn try.c r eateWith Id (IN T,  AT TR, " l ayout_ heigh tPer ce nt " , " 0x07f01 0 09 " ) ,
        F ak eEntr y.cr e ate WithId( INT, ATTR , " l istL ay ou t", "0x 07f01002"),
          F ak eEn try.cr e a teWithId (INT, ID, "a1", "0x07f0 1 003"),         FakeEntry .cr eateWi thI d (INT,ID, "a 2", " 0x 07f 0 1 004") ,          FakeE n t ry. creat eW ithI d(
               INT_AR R AY,  STYLEABLE, " Act ionB a r ",  "{ 0x 0 7f0 10 0 6,0 x 0 7f01007,0x07f01 008 }"),
        Fake E ntr y. createW ithId(I NT, S T YLEABLE , "Action Bar_backg ro und" , "0" ),
           Fak eEntry.cr e ateWi t hI d(INT , S TYLEAB LE 
String, RDotTxtEntry>_packageNameToResources =
_   _ __MergeAndroidResourcesStep.sortSymbols(
 __  _  _   entriesBuilder.buildFilePathToPackageNameSet(),
_  __       Optional.empty(),
      __ ___ImmutableMap.of(),
    _    _ _Optional.empty(),
       __  _/* bannedDuplicateResourceTypes */ EnumSet.noneOf(RType.class),
     _     _ImmutableSet.of(),
  ___   _   entriesBuilder.getProjectFilesystem(),
  _     _   false);

   _assertEquals(23, packageNameToResources.size());

    ArrayList<RDotTxtEntry>_resources =
   _ _  new ArrayList<>(packageNameToResources.get(sharedPackageName));
 _  assertEquals(23,_resources.size());

 _  System.out.println(resources);

_   ImmutableList<RDotTxtEntry> fakeRDotTxtEntryWithIDS =
_  _    ImmutableList.of(
 __  ___ _  FakeEntry.createWithId(INT,_ATTR,_"android_layout_gravity", "0x07f01005"),
__     __   FakeEntry.createWithId(INT, ATTR, "background", "0x07f01006"),
_   __   _  FakeEntry.createWithId(INT, ATTR, "backgroundSplit",_"0x07f01007"),
     _ _ _  FakeEntry.createWithId(INT, ATTR, "backgroundStacked", "0x07f01008"),
     _     _FakeEntry.createWithId(INT, ATTR, "buttonPanelSideLayout", "0x07f01001"),
_ __  __ _  FakeEntry.createWithId(INT, ATTR, "layout_heightPercent", "0x07f01009"),
 _ _     _  FakeEntry.createWithId(INT, ATTR,_"listLayout",_"0x07f01002"),
     _     _FakeEntry.createWithId(INT, ID, "a1", "0x07f01003"),
 ___    _   FakeEntry.createWithId(INT, ID, "a2",_"0x07f01004"),
  _      __ FakeEntry.createWithId(
    __     ___  INT_ARRAY, STYLEABLE, "ActionBar",_"{ 0x07f01006,0x07f01007,0x07f01008 }"),
   _        FakeEntry.createWithId(INT,_STYLEABLE, "ActionBar_background", "0"),
_    ___    FakeEntry.createWithId(INT, STYLEABLE