METHOD_0 ( ) { java . lang . String expected = STRING_0 ; java . lang . System . METHOD_1 ( STRING_1 ) ; org . jboss . IDENT_0 . container . IDENT_1 engine = mock ( org . jboss . IDENT_0 . container . IDENT_1 . class ) ; org . jboss . IDENT_0 . config . IDENT_2 IDENT_3 = mock ( org . jboss . IDENT_0 . config . IDENT_2 . class ) ; org . jboss . IDENT_0 . config . IDENT_2 factory = new org . jboss . IDENT_0 . config . impl . METHOD_2 ( IDENT_3 ) ; when ( IDENT_3 . METHOD_3 ( engine ) ) . thenReturn ( expected ) ; java . lang . String result = factory . METHOD_3 ( engine ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . jboss . IDENT_0 . container . IDENT_1 ) { org . jboss . IDENT_0 . container . IDENT_4 IDENT_5 = engine . METHOD_4 ( ) ; byte [ ] address = IDENT_5 . METHOD_5 ( ) . METHOD_5 ( ) ; byte [ ] name = engine . getName ( ) . getBytes ( ) ; java . nio . ByteBuffer buffer = java . nio . ByteBuffer . METHOD_6 ( ( ( ( address . length ) + ( org . jboss . IDENT_0 . config . impl . IDENT_6 . IDENT_7 ) ) + ( name . length ) ) ) ; buffer . put ( address ) . METHOD_7 ( IDENT_5 . METHOD_8 ( ) ) . put ( name ) ; return java . util . UUID . METHOD_9 ( buffer . array ( ) ) . toString ( ) ; }
org . junit . Assert . assertSame ( expected , result )