METHOD_0 ( ) { io . IDENT_0 . IDENT_1 . service . IDENT_2 context = mock ( io . IDENT_0 . IDENT_1 . service . IDENT_2 . class ) ; when ( context . METHOD_1 ( ) ) . thenReturn ( io . IDENT_0 . core . set . IDENT_3 . instance ( ) ) ; when ( context . METHOD_2 ( ) ) . thenReturn ( "test" ) ; when ( context . METHOD_3 ( ) ) . thenReturn ( io . IDENT_0 . IDENT_1 . IDENT_4 . from ( 1 ) ) ; when ( context . METHOD_4 ( ) ) . thenReturn ( new io . IDENT_0 . utils . time . METHOD_5 ( ) ) ; io . IDENT_0 . IDENT_1 . session . IDENT_5 session = mock ( io . IDENT_0 . IDENT_1 . session . IDENT_5 . class ) ; when ( session . METHOD_6 ( ) ) . thenReturn ( io . IDENT_0 . IDENT_1 . session . IDENT_6 . from ( 1 ) ) ; io . IDENT_0 . core . list . impl . IDENT_7 service = new io . IDENT_0 . core . list . impl . METHOD_7 ( ) ; service . init ( context ) ; service . add ( "foo" ) ; io . IDENT_0 . storage . buffer . IDENT_8 buffer = io . IDENT_0 . storage . buffer . IDENT_9 . METHOD_8 ( ) ; service . METHOD_9 ( new io . IDENT_0 . IDENT_1 . service . impl . METHOD_10 ( buffer , service . serializer ( ) ) ) ; service = new io . IDENT_0 . core . list . impl . METHOD_7 ( ) ; service . METHOD_11 ( new io . IDENT_0 . IDENT_1 . service . impl . METHOD_12 ( buffer . METHOD_13 ( ) , service . serializer ( ) ) ) ; "<AssertPlaceHolder>" ; } get ( com . google . common . base . IDENT_10 ) { return IDENT_11 . apply ( value ) ; }
org . junit . Assert . assertEquals ( "foo" , service . get ( 0 ) )