* Test parsing of a response with 1 Attr 1 Base64 Value
* @throws UnsupportedEncodingException
*/
public void testResponseWith1Attr1Base64Value() throws UnsupportedEncodingException
{
Dsmlv2ResponseParser parser = null;
try
{
parser = new Dsmlv2ResponseParser();
parser.setInputFile( SearchResultEntryTest.class.getResource( "response_with_1_attr_1_base64_value.xml" )
.getFile() );
parser.parse();
}
catch ( Exception e )
{
fail( e.getMessage() );
}
SearchResultEntry searchResultEntry = ( ( SearchResponse ) parser.getBatchResponse().getCurrentResponse() )
.getCurrentSearchResultEntry();
Attributes attributes = searchResultEntry.getPartialAttributeList();
assertEquals( 1, attributes.size() );