  @Test
  void shouldGiveSpecifiedFieldsInformationOfVideo() throws Exception {

    var fields = new String[]{"id", "title", "length"};

    var expectedDetails = "{\"id\": 1,\"title\": \"Avatar\",\"length\": 178}";
    Mockito.when(fieldJsonMapper.toJson(Matchers.any(Video.class), Matchers.eq(fields))).thenReturn(expectedDetails);

    var actualFieldsDetails = resource.getDetails(2, fields);

    Assertions.assertEquals(expectedDetails, actualFieldsDetails);
  }