@Test
public void testGetMatchingRecordFields() throws IOException, TokenExpiredException {

    try(ArgusService argusService = new ArgusService(getMockedClient("/DiscoveryServiceTest.json"))) {
        DiscoveryService discoveryService = argusService.getDiscoveryService();
        List<String> result = discoveryService.getMatchingRecordFields("nsReg", "scpReg", "metReg", "tkReg", "tvReg", NAMESPACE, 2);
        List<String> expected = Arrays.asList(new String[] { "namespace1", "namespace2" });
        assertEquals(expected, result);
    }
}