METHOD_0 ( ) { final com . spotify . IDENT_0 . model . IDENT_1 IDENT_2 = com . spotify . IDENT_0 . model . IDENT_1 . METHOD_1 ( ) . id ( STRING_0 ) . start ( java . time . IDENT_3 . parse ( STRING_1 ) ) . end ( java . time . IDENT_3 . parse ( STRING_2 ) ) . METHOD_2 ( com . spotify . IDENT_0 . model . IDENT_4 . create ( STRING_3 , STRING_4 ) ) . METHOD_3 ( 2 ) . description ( STRING_5 ) . METHOD_4 ( java . time . IDENT_3 . parse ( STRING_1 ) ) . METHOD_5 ( com . spotify . IDENT_0 . storage . IDENT_5 ) . build ( ) ; storage . METHOD_6 ( IDENT_2 ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( java . lang . String ) { final com . google . cloud . datastore . Entity entity = datastore . get ( datastore . METHOD_8 ( ) . METHOD_9 ( com . spotify . IDENT_0 . storage . IDENT_6 . IDENT_7 ) . METHOD_10 ( id ) ) ; if ( entity == null ) { return java . util . Optional . empty ( ) ; } return java . util . Optional . of ( com . spotify . IDENT_0 . storage . IDENT_6 . METHOD_11 ( entity ) ) ; }
org . junit . Assert . assertThat ( storage . METHOD_7 ( IDENT_2 . id ( ) ) , org . hamcrest . Matchers . equalTo ( java . util . Optional . of ( IDENT_2 ) ) )