METHOD_0 ( ) { final org . neo4j . io . fs . IDENT_0 IDENT_1 = mock ( org . neo4j . io . fs . IDENT_0 . class ) ; final org . neo4j . kernel . impl . transaction . log . IDENT_2 IDENT_3 = new org . neo4j . kernel . impl . transaction . log . METHOD_1 ( IDENT_4 ) ; when ( channel . METHOD_2 ( ) ) . thenReturn ( version ) ; when ( channel . METHOD_3 ( ) ) . thenReturn ( org . neo4j . kernel . impl . transaction . IDENT_5 ) ; when ( fs . METHOD_4 ( any ( java . io . File . class ) ) ) . thenReturn ( true ) ; when ( fs . METHOD_5 ( any ( java . io . File . class ) , eq ( IDENT_6 . IDENT_7 ) ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_1 . read ( org . mockito . IDENT_8 . < java . nio . ByteBuffer > any ( ) ) ) . METHOD_6 ( ( IDENT_9 ) -> { java . nio . ByteBuffer buffer = IDENT_9 . METHOD_7 ( 0 ) ; buffer . METHOD_8 ( METHOD_9 ( ( ( version ) + 1 ) ) ) ; buffer . METHOD_8 ( INT_0 ) ; return org . neo4j . kernel . impl . transaction . IDENT_10 ; } ) ; final org . neo4j . kernel . impl . transaction . log . IDENT_11 result = IDENT_3 . next ( channel ) ; org . neo4j . kernel . impl . transaction . log . IDENT_12 expected = new org . neo4j . kernel . impl . transaction . log . METHOD_10 ( IDENT_1 , ( ( version ) + 1 ) , IDENT_5 ) ; "<AssertPlaceHolder>" ; verify ( channel , times ( 1 ) ) . close ( ) ; } next ( long ) { throw new java . lang . METHOD_11 ( ) ; }
org . junit . Assert . assertEquals ( expected , result )