@Test
public void testGetAnnotateImagePayload() throws Exception {

	Mockito.when(
		_fileEntry.getFileVersion()
	).thenReturn(
		_fileVersion
	);
	String randomString = RandomTestUtil.randomString();
	Mockito.when(
		_fileVersion.getContentStream(false)
	).thenReturn(
		new ByteArrayInputStream(randomString.getBytes())
	);
	Assert.assertEquals(
		StringBundler.concat(
			"{\"requests\":[{\"features\":",
			"[{\"type\":\"LABEL_DETECTION\"}],\"image\":{\"content\":\"",
			Base64.encode(randomString.getBytes()), "\"}}]}"),
		GCloudVisionUtil.getAnnotateImagePayload(_fileEntry));
}