	@Test 
	public void testBytesToString() throws UnsupportedEncodingException {

		String string = BulldogUtil.bytesToString("Hello World".getBytes("ASCII"));
		TestCase.assertEquals("Hello World", string);
		
		string = BulldogUtil.bytesToString("Hello World".getBytes());
		TestCase.assertEquals("Hello World", string);
		
		string = BulldogUtil.bytesToString(new byte[] {});
		TestCase.assertNull(string);
		
		try {
			string = BulldogUtil.bytesToString(null);
			TestCase.fail();
		} catch(IllegalArgumentException ex) {  }
		
		try {
			string = BulldogUtil.bytesToString("Hello World".getBytes("ASCII"), "NON_EXISTENT_ENCODING");
		} catch(IllegalArgumentException ex) {
			TestCase.assertEquals("Unknown encoding", ex.getMessage());
		}
	}