@Test
void metadataDownloadExceptionIsThrownWhenByteArrayIsEmpty()
{

  byte[] bytes = new byte[0];
  Mockito.when(metadataService.getMetadata()).thenReturn(bytes);
  Assertions.assertThrows(MetadataDownloadException.class, () -> controller.downloadMetadata());
}