METHOD_0 ( ) { java . util . List < org . osgi . service . device . IDENT_0 > IDENT_1 = new java . util . ArrayList < org . osgi . service . device . IDENT_0 > ( ) ; org . osgi . service . device . IDENT_0 IDENT_2 = org . mockito . Mockito . mock ( org . osgi . service . device . IDENT_0 . class , STRING_0 ) ; IDENT_1 . add ( IDENT_2 ) ; java . lang . String [ ] IDENT_3 = new java . lang . String [ ] { STRING_1 , STRING_2 } ; for ( java . lang . String string : IDENT_3 ) { org . mockito . Mockito . when ( IDENT_2 . METHOD_1 ( org . mockito . Mockito . eq ( string ) ) ) . thenReturn ( null ) ; org . osgi . framework . IDENT_4 IDENT_5 = org . mockito . Mockito . mock ( org . osgi . framework . IDENT_4 . class ) ; org . mockito . Mockito . when ( IDENT_6 . METHOD_2 ( ( STRING_3 + string ) , null ) ) . thenReturn ( IDENT_5 ) ; IDENT_5 . start ( ) ; org . osgi . framework . IDENT_7 ref = org . mockito . Mockito . mock ( org . osgi . framework . IDENT_7 . class ) ; org . mockito . Mockito . when ( ref . getProperty ( Constants . IDENT_8 ) ) . thenReturn ( string ) ; org . mockito . Mockito . when ( IDENT_5 . METHOD_3 ( ) ) . thenReturn ( new org . osgi . framework . IDENT_7 [ ] { ref } ) ; } java . util . List < org . osgi . framework . IDENT_7 > IDENT_9 = IDENT_10 . METHOD_0 ( IDENT_1 , IDENT_3 ) ; "<AssertPlaceHolder>" ; for ( org . osgi . framework . IDENT_7 IDENT_11 : IDENT_9 ) { java . lang . String IDENT_12 = "" + ( IDENT_11 . getProperty ( Constants . IDENT_8 ) ) ; if ( ( ! ( IDENT_12 . equals ( IDENT_3 [ 0 ] ) ) ) && ( ! ( IDENT_12 . equals ( IDENT_3 [ 1 ] ) ) ) ) { org . junit . Assert . fail ( STRING_4 ) ; } } } size ( ) { return data . length ; }
org . junit . Assert . assertEquals ( "" , 2 , IDENT_9 . size ( ) )