@Test
public void testGetKeyValuePairsFileEntryWithNoMetadata() throws Exception {

	Mockito.when(
		_fileEntry.getModel()
	).thenReturn(
		Mockito.mock(DLFileEntry.class)
	);
	Mockito.when(
		_fileEntry.getFileVersion()
	).thenReturn(
		Mockito.mock(FileVersion.class)
	);
	Mockito.when(
		_ddmStructureLocalService.getClassStructures(
			Mockito.anyLong(), Mockito.anyLong(),
			Mockito.any(OrderByComparator.class))
	).thenReturn(
		Collections.emptyList()
	);
	Assert.assertEquals(
		Collections.emptyList(),
		_fileEntryMetadataOpenGraphTagsProvider.
			getFileEntryMetadataOpenGraphTagKeyValuePairs(_fileEntry));
}