METHOD_0 ( ) { java . lang . Object response = new java . lang . Object ( ) ; IDENT_0 . IDENT_1 IDENT_2 = IDENT_0 . IDENT_1 . METHOD_1 ( STRING_0 ) ; when ( serializer . serialize ( any ( com . spotify . IDENT_3 . IDENT_4 . class ) , eq ( response ) ) ) . thenReturn ( com . spotify . IDENT_3 . IDENT_5 . create ( IDENT_2 ) ) ; IDENT_6 . METHOD_2 ( com . spotify . IDENT_3 . Response . METHOD_3 ( response ) . METHOD_4 ( STRING_1 , STRING_2 ) ) ; java . util . Optional < java . lang . String > header = METHOD_5 ( com . spotify . IDENT_3 . route . IDENT_7 . serialize ( serializer ) . apply ( IDENT_8 ) ) . header ( STRING_1 ) ; "<AssertPlaceHolder>" ; } get ( ) { if ( ! ( com . spotify . IDENT_3 . IDENT_9 . IDENT_10 . IDENT_11 . METHOD_6 ( config ) ) ) { com . spotify . IDENT_3 . IDENT_9 . IDENT_10 . LOG . warn ( STRING_3 ) ; return new com . spotify . IDENT_3 . IDENT_9 . IDENT_10 . METHOD_7 ( ) ; } com . spotify . IDENT_3 . IDENT_9 . IDENT_10 . IDENT_11 IDENT_12 = com . spotify . IDENT_3 . IDENT_9 . IDENT_10 . IDENT_11 . METHOD_8 ( config , IDENT_13 ) ; return new com . spotify . IDENT_3 . IDENT_9 . IDENT_10 . METHOD_9 ( IDENT_12 ) ; }
org . junit . Assert . assertThat ( header . get ( ) , org . hamcrest . CoreMatchers . equalTo ( STRING_2 ) )