catch ( Exception e )
{
fail( e.getMessage() );
}
SearchResultReference searchResultReference = ( ( SearchResponse ) parser.getBatchResponse()
.getCurrentResponse().getDecorated() ).getCurrentSearchResultReference();
Map<String, Control> controls = searchResultReference.getControls();
assertEquals( 2, searchResultReference.getControls().size() );
Control control = controls.get( "1.2.840.113556.1.4.789" );
assertNotNull( control );
assertEquals( "1.2.840.113556.1.4.789", control.getOid() );