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

    try(ArgusService argusService = new ArgusService(getMockedClient("/DiscoveryServiceTest.json"))) {
        DiscoveryService discoveryService = argusService.getDiscoveryService();
        MetricDiscoveryQuery query = new MetricDiscoveryQuery(null, "scpReg", "*", null, null, 10, "namespace", null);
        MetricDiscoveryResult result = discoveryService.getMatchingRecords(query);
        MetricDiscoveryResult expected = new MetricDiscoveryResult(Arrays.asList(new String[] { "namespace1", "namespace2" }), null);
        assertEquals(expected, result);
    }
}