test/org/ohmage/validator/ImageValidatorsTest.java
@Test
	public void testValidateImageContents() {
//		try {
//			try {
//				Assert
//					.assertNull(
//						ImageValidators.validateImageContents(null, null));
//				fail("The image ID was null.");
//			}
//			catch(ValidationException e) {
//				// Passed.
//			}
//			
//			Assert
//				.assertNull(
//					ImageValidators
//						.validateImageContents(
//							UUID.randomUUID(),
//							new byte[0]));
//			
//			try {
//				ImageValidators
//					.validateImageContents(
//						UUID.randomUUID(), 
//						"Invalid value.".getBytes());
//				fail("The image contents were invalid.");
//			}
//			catch(ValidationException e) {
//				// Passed.
//			}
//		}
//		catch(ValidationException e) {
//			fail("A validation exception was thrown: " + e.getMessage());
//		}
	}
/**
	 * Tests the image contents validator.
	 */
Tests the image contents validator.
Tests the image contents validator .
@Test
	public void testValidateImageContents() {
Assert
	.assertNull(
		ImageValidators
			.validateImageContents(
				UUID.randomUUID(),
				new byte[0]));
	ImageValidators
		.validateImageContents(
			UUID.randomUUID(), 
			"Invalid value.".getBytes());
	fail("The image contents were invalid.");
fail("A validation exception was thrown: " + e.getMessage());
	}
@ Test public void testValidateImageContents ( ) { }
Tests the image contents validator.
Tests the image contents validator .
//		try { //			try { //				Assert //					.assertNull( //						ImageValidators.validateImageContents(null, null)); //				fail("The image ID was null."); //			} //			catch(ValidationException e) { //				// Passed. //			} //			 //			Assert //				.assertNull( //					ImageValidators //						.validateImageContents( //							UUID.randomUUID(), //							new byte[0])); //			 //			try { //				ImageValidators //					.validateImageContents( //						UUID.randomUUID(),  //						"Invalid value.".getBytes()); //				fail("The image contents were invalid."); //			} //			catch(ValidationException e) { //				// Passed. //			} //		} //		catch(ValidationException e) { //			fail("A validation exception was thrown: " + e.getMessage()); //		}