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 ) . METHOD_4 ( java . time . IDENT_3 . parse ( STRING_1 ) ) . METHOD_5 ( com . spotify . IDENT_0 . storage . IDENT_5 ) . build ( ) ; final com . google . cloud . datastore . IDENT_6 key = com . spotify . IDENT_0 . storage . IDENT_7 . METHOD_6 ( datastore . METHOD_7 ( ) , IDENT_2 . id ( ) ) ; com . google . cloud . datastore . Entity . Builder builder = com . google . cloud . datastore . Entity . METHOD_1 ( key ) . set ( com . spotify . IDENT_0 . storage . IDENT_7 . IDENT_8 , IDENT_2 . METHOD_3 ( ) ) . set ( com . spotify . IDENT_0 . storage . IDENT_7 . IDENT_9 , com . spotify . IDENT_0 . storage . IDENT_7 . METHOD_8 ( IDENT_2 . start ( ) ) ) . set ( com . spotify . IDENT_0 . storage . IDENT_7 . IDENT_10 , com . spotify . IDENT_0 . storage . IDENT_7 . METHOD_8 ( IDENT_2 . end ( ) ) ) . set ( com . spotify . IDENT_0 . storage . IDENT_7 . IDENT_11 , IDENT_2 . METHOD_2 ( ) . METHOD_9 ( ) ) . set ( com . spotify . IDENT_0 . storage . IDENT_7 . IDENT_12 , IDENT_2 . METHOD_2 ( ) . id ( ) ) . set ( com . spotify . IDENT_0 . storage . IDENT_7 . IDENT_13 , IDENT_2 . METHOD_5 ( ) . toString ( ) ) . set ( com . spotify . IDENT_0 . storage . IDENT_7 . IDENT_14 , com . spotify . IDENT_0 . storage . IDENT_7 . METHOD_8 ( IDENT_2 . METHOD_4 ( ) ) ) . set ( com . spotify . IDENT_0 . storage . IDENT_7 . IDENT_15 , IDENT_2 . METHOD_10 ( ) ) . set ( com . spotify . IDENT_0 . storage . IDENT_7 . IDENT_16 , IDENT_2 . METHOD_11 ( ) ) ; datastore . put ( builder . build ( ) ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( java . lang . String ) { final com . google . cloud . datastore . Entity entity = datastore . get ( datastore . METHOD_7 ( ) . METHOD_13 ( com . spotify . IDENT_0 . storage . IDENT_7 . IDENT_17 ) . METHOD_14 ( id ) ) ; if ( entity == null ) { return java . util . Optional . empty ( ) ; } return java . util . Optional . of ( com . spotify . IDENT_0 . storage . IDENT_7 . METHOD_15 ( entity ) ) ; }
org . junit . Assert . assertThat ( storage . METHOD_12 ( IDENT_2 . id ( ) ) , org . hamcrest . Matchers . equalTo ( java . util . Optional . of ( IDENT_2 ) ) )