var ResponseParser = require('../lib/responseparser'),
	winston = require('winston'),
	fs = require('fs'),
	path = require('path');

describe('responseparser', function() {
	var parser = new ResponseParser({
		format: 'xml',
		logger: new winston.Logger({ transports: [] })
	});

	it('should return xml when format is xml', function() {
		var callbackSpy = jasmine.createSpy(),
			xml = fs.readFileSync(
				path.join(__dirname +
					'/responses/release-tracks-singletrack.xml'),
					'utf8');
		parser.parse(callbackSpy, null, xml);
		expect(callbackSpy).toHaveBeenCalled();
		expect(callbackSpy).toHaveBeenCalledWith(null, xml);
	});

});

@@ -631,12 +631,395 @@
 ;%0A%09%7D);%0A%0A
+%09it('should return xml when format is XML', function() %7B%0A%09%09var callbackSpy = jasmine.createSpy(),%0A%09%09%09xml = fs.readFileSync(%0A%09%09%09%09path.join(__dirname +%0A%09%09%09%09%09'/responses/release-tracks-singletrack.xml'),%0A%09%09%09%09%09'utf8');%0A%0A%09%09parser.format = 'XML';%0A%09%09parser.parse(callbackSpy, null, xml);%0A%09%09expect(callbackSpy).toHaveBeenCalled();%0A%09%09expect(callbackSpy).toHaveBeenCalledWith(null, xml);%0A%09%7D);%0A
 %7D);%0A

Add case sensitive test for format in response parser