@Test(expected = RuntimeException.class)
public void test_get_metadata_bad_response() throws IOException {

    MockWebServer mockWebServer = new MockWebServer();
    mockWebServer.start();
    final String cerberusUrl = "http://localhost:" + mockWebServer.getPort();
    mockWebServer.enqueue(new MockResponse().setResponseCode(400).setBody(ERROR_RESPONSE));
    ArrayList<Map<String, String>> sdbMetadata = cerberusMetadataLookup.getCerberusMetadata(cerberusUrl);
}