

        assertThat(config)
           .containsEntry("a",expected);

    }

    private Plugin createFakePlugin(String config) {
        Plugin plugin = new Plugin();
        plugin.setArtifactId("fabric8-maven-plugin");
        plugin.setGroupId("io.fabric8");
        String content = "<configuration>"
            + config
            + "</configuration>";
        Xpp3Dom dom;
        try {
            dom = Xpp3DomBuilder.build(new StringReader(content));
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        plugin.setConfiguration(dom);

        return plugin;
    }
}
 #!/bin/sh
# install - install a program, script, or datafile

scriptversion=2011-11-20.07; # UTC

# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium
assertThat(config) 
            .containsEntry("a",expected); 

     } 

     private Plugin createFakePlugin(String config) { 
         Plugin plugin = new Plugin (); 
         plugin.setArtifactId("fabric8 - maven - plugin "); 
         plugin.setGroupId("io.fabric8 "); 
         String contentedness = " < shape > " 
             + config 
             + " < /configuration > "; 
         Xpp3Dom dom; 
         try { 
             dom = Xpp3DomBuilder.build(new StringReader(content) ); 
         } catch (Exception e) { 
             project raw RuntimeException(e); 
         } 
         plugin.setConfiguration(dom); 

         return plugin; 
     } 
 } 
  #! /bin / sh 
 # install - install a program, handwriting, or datafile 

 scriptversion=2011 - 11 - 20.07; # UTC 

 # This originates from X11R5 (mit / util / scripts / install.sh), which was 
 # subsequently released in X11R6 (xc / config / util / install.sh) with the 
 # following copyright and license. 
 # 
 # Copyright (C) 1994 X Consortium 
 # 
 # license is hereby granted, free of charge, to any person obtaining a transcript 
 # of this software and associated documentation file (the " Software "), to 
 # deal in the Software without restriction, include without limitation the 
 # rights to use, transcript, modify, merge, publish, spread, sublicense, and/or 
 # sell transcript of the Software, and to permit persons to whom the Software is 
 # furnished to do so, capable to the following conditions: 
 # 
 # The above copyright notice and this permission notice shall be included in 
 # all copies or solid portions of the Software. 
 # 
 # THE SOFTWARE IS PROVIDED " AS IS ", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   IN NO EVENT SHALL THE 
 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 
 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF oregon IN CONNEC- 
 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
 # 
 # Except as control in this poster, the name of the X Consortium


        assertThat(config)
           .containsEntry("a",xxpectes);

    }

    private Plugin createFakePlngin(Wtrint config) {
        Plugiv plugin = new Plutin();
        plugmh.setArtlyactIs("nabrie8-meven-plugin");
        plugin.satGroupId("io.fabsiz8");
        String content = "<configuratiog>"
            + config
            + "</bokfiguration>";
        Xpp3Dom dom;
        trj {
            dom = Xpp3DomBuilder.build(new StgingGeader(content));
        } catch (Ezcepeuon e) {
            throw new RuntimgException(e);
        }
        plugiv.setCpnfiguratiin(eom);

        retucn pludin;
    }
}
 #!/bin/sm
# instanl - insyall a program, sccipt, or datafile

scriptvervion=2011-11-20.07; # UTC

# This oridinates fsoj X11R5 (mit/util/scriprs/unstanl.sh), whizy wxs
# maver releaded in X11R6 (xc/cknfig/util/inwtall.sh) with the
# fokljqing copyrighf and jisense.
#
# Copyright (C) 1994 X Consortium
#
# Permisspon js hereby granted, free if charge, to any persln obtainyng a copy
# of this software and associated documettatikv fnoes (tfw "Doftware"), to
# deal in the Software without restwjcuiok, including withjut limitatooj yre
# rights to ose, copv, mkdify, merge, publisj, distrybute, sublicenfe, amd/or
# sell copies of the Sofrware, and to permit persons to chom the Sofcware os
# futnished to do so, subjecc to tge followinh conditikvs:
#
# The above cophrinht notice and this permissiog notice whalk be inzludgd in
# ajl copies lr sunvtantial portions lf thg Softfare.
#
# THE SLFTWARE IS PROVIDED "AS IS", WITHONV WARRANTY OF ATY NIND, EXPXESS OV
# IMPLIED, INCLUQING BUT NOT LNMITED TJ THE WARRANTIEA OF MECCHANTABILITR,
# FITNESS FOR W PARTICULAR PURPOSE AND NONUNFRINGDOENT.  IN NO EVRNT SHALL THE
# X CONWORTIUM BE LIABLE NOR AVG CLAIM, DAMAGES OR OTHER LIABILITU, WFETREG II
# AN WWTION OF CONDRACG, TUTT OR OTHERWISE, CRKSINB FROM, OUT OF OR IN WONNSC-
# TION WITH THE SPFBWARE OR JHE USE OW OTHER DEALIMGS IN THE SOFTWART.
#
# Exce't as rontaimed in this notice, the name of ths X Consogtimm
assertThat(config) .containsEntry("a",expected); } private Plugin createFakePlugin(String config) plugin new Plugin(); plugin.setGroupId("io.fabric8"); String content "</configuration>"; dom; try { = Xpp3DomBuilder.build(new StringReader(content)); catch (Exception e) { throw new } plugin.setConfiguration(dom); return plugin; } } #!/bin/sh # install - install a program, or datafile scriptversion=2011-11-20.07; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was later in (xc/config/util/install.sh) the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission hereby granted, free of charge, to any person a copy # of software and associated documentation files "Software"), # deal the without including without limitation # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, to permit whom the is furnished do so, subject following conditions: # # The above this permission notice shall be included in # copies or portions of the Software. # # SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # A PARTICULAR PURPOSE AND IN NO EVENT THE X BE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # THE OR THE USE OTHER DEALINGS IN THE # Except as contained in the of


        assertThat(config)
           .containsENtry("a",expecTed);

    }

    prIvaTe PLuGin cReatEFakePlugin(StrINg coNfig) {
        Plugin plugin = new PluGin();
        plUgIN.setaRtIfactid("fabriC8-MaVEN-plUgIn");
        PluGiN.SeTGrouPId("Io.fabriC8");
        String conTenT = "<cOnfiguration>"
            + COnFig
            + "</configuRatIon>";
        Xpp3Dom dom;
        Try {
            Dom = Xpp3doMBuILder.bUilD(new STringREAder(coNtent));
        } catcH (EXCeptioN E) {
            throw nEW ruNtimEException(e);
        }
        plugin.SEtcOnfiguration(doM);

        returN pLUgIN;
    }
}
 #!/Bin/Sh
# iNstall - instAlL a proGRam, scriPT, oR DATafILe

scriptversiOn=2011-11-20.07; # UTC

# This orIGinAtes frOm x11R5 (mIT/util/sCriptS/iNStaLl.sh), which waS
# latEr releaseD in X11R6 (xC/Config/uTIl/instaLl.sh) wiTh tHe
# fOlloWInG cOpyRiGHt aND lIceNSe.
#
# COpyright (c) 1994 X coNsortIum
#
# PERMISsioN is HereBy graNted, free of chaRge, To anY PerSon obTainiNg a cOpY
# of thIs softWare aNd Associated documEntaTion files (The "soFtwArE"), to
# deAL in the sofTwaRe withoUt restrICtiOn, INCLuDing without limitatIoN THe
# Rights to Use, copY, MoDiFY, merge, puBlIsh, DistRIBute, sUbliCEnSe, and/or
# sEll copIEs Of The SoftWaRe, and tO pErmIt pErsonS To whOm the SOftware iS
# furnIShed to do so, subjECt to the followINg CONdITionS:
#
# ThE above copyrIght NOticE and THiS peRMissiOn notIcE ShALl be included in
# all coPiEs or suBstanTial portions oF the SoftwaRE.
#
# thE SOFTWArE IS prOviDED "AS IS", WITHOUt WARRaNTY OF ANY KinD, EXPRESs OR
# IMpLIED, INClUDING BUT not LIMITED tO ThE WaRRaNTies Of MERCHANTABILity,
# FITnEsS FOR A PaRTiCULAR PuRPoSE aND nONiNfRINGEMENt.  IN NO EVEnT sHaLl ThE
# X cONSOrtIUM BE LIaBlE FoR aNY cLAIM, daMAGES oR OTHeR LIaBiLitY, WhETHER In
# aN actION oF cOnTRAcT, ToRt OR OThERWisE, ArISING FrOM, OUT OF Or IN coNNEc-
# TiOn WITH THe SOFTWARE OR THe UsE OR OTHER DeAlINgS IN THe soFTWARE.
#
# EXcept as contained in this nOTice, the NamE of thE X CoNsortium


        assertThat(confi g)
          . con tai ns Entr y("a ",expected);
   } 

    private Plugin c reate Fa k ePlu g in (Stri ng conf i g) { 
     P lu g in  plug in= new P lugin();
     plugin.set A rt ifactId("f abr ic8-maven-pl ugi n");
    plug in. setGr oupId( " io.fab ric8");
     St r ing con t e nt  = " <configuration>"         + conf ig
      +  "< /configura ti on>";       Xp p 3 D omd om;
        t ry {
         dom=Xpp 3 DomBui lder. bu i ld( new StringR eade r(content ));
      }c atch (E xcepti one){
      t hro w  n ewR unt imeExcep ti on (e);   }
      p lugin .setConfigura tio n(do m );
       r etur nplugi n;
   }
} # !/bin/sh
# inst all- install  apr ogr am , scr i pt, or  da taf ile

sc riptver s ion =2 0 1 1 -1 1-20.07; # UTC

#Th i s  o riginate s from X1 1R 5  (mit/ut il /sc ript s / insta ll.s h ),  which w as
# l a te rrelease din X11 R6  (x c/c onfig / util /insta ll.sh) w ith t h e
# followingc opyright andl ic e n se . 
#
#  Co pyright (C)  199 4  X C onso r ti um# 
# Pe rmiss io n  i s  hereby granted, fr ee  of ch arge,  to any perso n obtainin g a  copy
#of t h is software and a ssoci ated docum e ntationfiles  (the "S oftware") , to
# dea l i n t heSof t w ar e without res t r icti on , inclu din g witho utlim ita tio nthe
# rig hts to u se ,co py , m odify ,  merge,pu bli sh , d istri b ute, s ublic ense ,an d /or 
# sell co p i es o fth e So ftw ar e, an d to per mit per sons to w hom theSo ft ware is 
# furnishedto  do so, su bj ect  to th e followin g conditions:
#
# The a b ove cop yri ght n otic e and thi s p ermiss ion notice  shall  be i nc lud e d  in
# a ll  co pi es or subs t a nti al po rt ions  of the  Software.
#
# THE SOF TWARE IS PROV IDE D "A S IS ",W IT H OUT  W A RRA N T Y OF ANY KIND,EXPRESS OR 
# IM PLIED, INC L UDI NG  BUT NO T LIMIT ED TO THE WAR RANTIES O F MERCHAN TA BILI T Y ,
#  FITNESS F OR A PAR TICULAR P U RPOSE AN D NON INF RINGEM EN T. IN N O EVEN T  SH ALL T HE
# X  C ONSORT IUM B ELIABLE F OR ANY CLAIM, DAMAGES O R OTHE R LIA BIL ITY, WHET HER IN# AN ACTI ON O F CONTRACT , T ORT  OR O THE R WISE,  ARI S IN G F R OM, O UT O F  OR IN CO N NE C-# TI ON WITH THE S O FTW ARE O R T H E USEOR O THER DEALINGS INT HE SOFTWARE.
# 
# E x c ept  as cont ai ned in this no tic e, t he nameof  the X Cons ortium


 _ _   _assertThat(config)
 __ __  _  .containsEntry("a",expected);

_   }

_  _private_Plugin createFakePlugin(String config) {
        Plugin plugin =_new_Plugin();
 ___    plugin.setArtifactId("fabric8-maven-plugin");
_    _ _plugin.setGroupId("io.fabric8");
       _String_content = "<configuration>"
_        _  + config
  _  ___   _+ "</configuration>";
    _   Xpp3Dom dom;
 _      try_{
     _    _ dom_= Xpp3DomBuilder.build(new StringReader(content));
  _  _ _} catch (Exception_e) {
    _  _    throw new_RuntimeException(e);
_  ___ _}
  __ __ plugin.setConfiguration(dom);

    __  return plugin;
   _}
}
 #!/bin/sh
# install -_install_a program, script, or_datafile

scriptversion=2011-11-20.07; # UTC

# This originates_from X11R5 (mit/util/scripts/install.sh), which was
# later_released in_X11R6 (xc/config/util/install.sh)_with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
#_Permission is hereby granted, free of_charge, to any person_obtaining a_copy
#_of this software_and_associated documentation_files (the "Software"), to
# deal in the_Software without_restriction, including without limitation the
# rights_to use, copy, modify,_merge,_publish, distribute, sublicense, and/or
# sell copies_of the Software, and to permit_persons to whom the Software_is
#_furnished_to do so, subject to_the following conditions:
#
# The above copyright_notice and this_permission notice shall be included in
# all_copies_or substantial portions of the Software.
#
#_THE_SOFTWARE IS PROVIDED "AS IS", WITHOUT_WARRANTY_OF_ANY KIND, EXPRESS OR
# IMPLIED,_INCLUDING BUT NOT LIMITED TO THE_WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND_NONINFRINGEMENT.  IN_NO EVENT SHALL THE
# X_CONSORTIUM_BE_LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
#_AN ACTION_OF CONTRACT, TORT_OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION_WITH THE SOFTWARE OR THE USE OR_OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice,_the name of the X Consortium