METHOD_0 ( ) { final com . IDENT_0 . jts . geom . IDENT_1 IDENT_2 = org . apache . rya . indexing . IDENT_3 . IDENT_4 . IDENT_5 . IDENT_6 . METHOD_1 ( new com . IDENT_0 . jts . geom . METHOD_2 ( 10 , 10 ) ) ; final org . apache . rya . indexing . IDENT_7 IDENT_8 = new org . apache . rya . indexing . METHOD_3 ( org . joda . time . IDENT_9 . now ( ) ) ; final org . apache . rya . indexing . IDENT_3 . model . IDENT_10 event = org . apache . rya . indexing . IDENT_3 . model . IDENT_10 . builder ( ) . METHOD_4 ( new org . apache . rya . api . domain . METHOD_5 ( STRING_0 ) ) . METHOD_6 ( IDENT_2 ) . METHOD_7 ( IDENT_8 ) . build ( ) ; final org . bson . Document document = new org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_8 ( ) . METHOD_9 ( event ) ; final org . apache . rya . indexing . IDENT_3 . model . IDENT_10 IDENT_11 = new org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_8 ( ) . METHOD_10 ( document ) ; "<AssertPlaceHolder>" ; } METHOD_10 ( org . bson . Document ) { METHOD_11 ( document ) ; final boolean IDENT_12 ; if ( ! ( document . containsKey ( org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_8 . IDENT_13 ) ) ) { throw new org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_12 ( ( ( ( ( STRING_1 + document ) + STRING_2 ) + ( org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_8 . IDENT_13 ) ) + STRING_3 ) ) ; } if ( document . containsKey ( org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_8 . IDENT_14 ) ) { IDENT_12 = true ; } else { IDENT_12 = false ; } final java . lang . String subject = document . getString ( org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_8 . IDENT_13 ) ; final org . apache . rya . indexing . IDENT_3 . model . IDENT_10 . Builder builder = new org . apache . rya . indexing . IDENT_3 . model . IDENT_10 . Builder ( ) . METHOD_4 ( new org . apache . rya . api . domain . METHOD_5 ( subject ) ) ; if ( document . containsKey ( org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_8 . IDENT_15 ) ) { final org . bson . Document IDENT_16 = ( ( org . bson . Document ) ( document . get ( org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_8 . IDENT_15 ) ) ) ; final com . IDENT_0 . jts . geom . IDENT_17 IDENT_18 = new com . IDENT_0 . jts . geom . METHOD_13 ( ) ; final java . lang . String IDENT_19 = ( ( java . lang . String ) ( IDENT_16 . get ( STRING_4 ) ) ) ; final com . IDENT_0 . jts . geom . IDENT_20 IDENT_21 = new com . IDENT_0 . jts . geom . METHOD_14 ( ) ; final com . IDENT_0 . jts . geom . IDENT_1 IDENT_2 ; if ( IDENT_19 . equals ( STRING_5 ) ) { final java . util . List < java . lang . Double > IDENT_22 = ( ( java . util . List < java . lang . Double > ) ( IDENT_16 . get ( STRING_6 ) ) ) ; final com . IDENT_0 . jts . geom . METHOD_2 IDENT_23 = new com . IDENT_0 . jts . geom . METHOD_2 ( IDENT_22 . get ( 0 ) , IDENT_22 . get ( 1 ) ) ; IDENT_2 = IDENT_18 . METHOD_1 ( IDENT_23 ) ; } else if ( IDENT_19 . equals ( STRING_7 ) ) { final java . util . List < java . util . List < java . lang . Double > > IDENT_24 = ( ( java . util . List < java . util . List < java . lang . Double > > ) ( IDENT_16 . get ( STRING_6 ) ) ) ; for ( final java . util . List < java . lang . Double > IDENT_22 : IDENT_24 ) { IDENT_21 . add ( new com . IDENT_0 . jts . geom . METHOD_2 ( IDENT_22 . get ( 0 ) , IDENT_22 . get ( 1 ) ) ) ; } IDENT_2 = IDENT_18 . METHOD_15 ( IDENT_21 . METHOD_16 ( ) ) ; } else { final java . util . List < java . util . List < java . util . List < java . lang . Double > > > IDENT_24 = ( ( java . util . List < java . util . List < java . util . List < java . lang . Double > > > ) ( IDENT_16 . get ( STRING_6 ) ) ) ; if ( ( IDENT_24 . size ( ) ) == 1 ) { final java . util . List < java . util . List < java . lang . Double > > IDENT_25 = IDENT_24 . get ( 0 ) ; for ( final java . util . List < java . lang . Double > IDENT_22 : IDENT_25 ) { IDENT_21 . add ( new com . IDENT_0 . jts . geom . METHOD_2 ( IDENT_22 . get ( 0 ) , IDENT_22 . get ( 1 ) ) ) ; } IDENT_2 = IDENT_18 . METHOD_17 ( IDENT_21 . METHOD_16 ( ) ) ; } else { final java . util . List < java . util . List < java . lang . Double > > first = IDENT_24 . get ( 0 ) ; final com . IDENT_0 . jts . geom . METHOD_14 IDENT_26 = new com . IDENT_0 . jts . geom . METHOD_14 ( ) ; for ( final java . util . List < java . lang . Double > IDENT_22 : IDENT_24 . get ( 0 ) ) { IDENT_26 . add ( new com . IDENT_0 . jts . geom . METHOD_2 ( IDENT_22 . get ( 0 ) , IDENT_22 . get ( 1 ) ) ) ; } final com . IDENT_0 . jts . geom . IDENT_27 shell = IDENT_18 . METHOD_18 ( IDENT_26 . METHOD_16 ( ) ) ; final java . util . List < java . util . List < java . util . List < java . lang . Double > > > IDENT_28 = IDENT_24 . METHOD_19 ( 1 , ( ( IDENT_24 . size ( ) ) - 1 ) ) ; final com . IDENT_0 . jts . geom . IDENT_27 [ ] IDENT_29 = new com . IDENT_0 . jts . geom . IDENT_27 [ IDENT_28 . size ( ) ] ; for ( int IDENT_30 = 0 ; IDENT_30 < ( IDENT_29 . length ) ; IDENT_30 ++ ) { final java . util . List < java . util . List < java . lang . Double > > IDENT_31 = IDENT_28 . get ( IDENT_30 ) ; final com . IDENT_0 . jts . geom . METHOD_14 IDENT_32 = new com . IDENT_0 . jts . geom . METHOD_14 ( ) ; for ( final java . util . List < java . lang . Double > IDENT_22 : IDENT_24 . get ( 0 ) ) { IDENT_32 . add ( new com . IDENT_0 . jts . geom . METHOD_2 ( IDENT_22 . get ( 0 ) , IDENT_22 . get ( 1 ) ) ) ; } IDENT_29 [ IDENT_30 ] = IDENT_18 . METHOD_18 ( IDENT_32 . METHOD_16 ( ) ) ; } IDENT_2 = IDENT_18 . METHOD_17 ( shell , IDENT_29 ) ; } } builder . METHOD_6 ( IDENT_2 ) ; } if ( IDENT_12 ) { final java . util . Date date = ( ( java . util . Date ) ( document . get ( org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_8 . IDENT_14 ) ) ) ; final org . joda . time . IDENT_9 IDENT_33 = new org . joda . time . METHOD_20 ( date . getTime ( ) ) ; final org . apache . rya . indexing . IDENT_7 IDENT_8 = new org . apache . rya . indexing . METHOD_3 ( IDENT_33 ) ; builder . METHOD_7 ( IDENT_8 ) ; } else if ( document . containsKey ( org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_8 . IDENT_34 ) ) { java . util . Date date = ( ( java . util . Date ) ( document . get ( org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_8 . IDENT_34 ) ) ) ; org . joda . time . METHOD_20 IDENT_33 = new org . joda . time . METHOD_20 ( date . getTime ( ) ) ; final org . apache . rya . indexing . IDENT_7 IDENT_35 = new org . apache . rya . indexing . METHOD_3 ( IDENT_33 ) ; date = ( ( java . util . Date ) ( document . get ( org . apache . rya . indexing . IDENT_3 . IDENT_4 . METHOD_8 . IDENT_36 ) ) ) ; IDENT_33 = new org . joda . time . METHOD_20 ( date . getTime ( ) ) ; final org . apache . rya . indexing . IDENT_7 end = new org . apache . rya . indexing . METHOD_3 ( IDENT_33 ) ; final org . apache . rya . indexing . IDENT_37 IDENT_38 = new org . apache . rya . indexing . METHOD_21 ( IDENT_35 , end ) ; builder . METHOD_22 ( IDENT_38 ) ; } return builder . build ( ) ; }
org . junit . Assert . assertEquals ( event , IDENT_11 )