public ConfigResponse resolveConfig(GetConfigRequest request) {
        ConfigKey<?> configKey = request.getConfigKey();
        validateConfigDefinition(request.getConfigKey(), request.getDefContent());
        return responseFactory.createResponse(model.getConfig(configKey).toUtf8Array(true),
                                              generation,
                                              false,
                                              request.configPayloadChecksums());
    }
@Test(expected = UnknownConfigDefinitionException.class)
    public void test_unknown_config_definition() {
        PayloadChecksums payloadChecksums = PayloadChecksums.empty();
        Request request = createWithParams(new ConfigKey<>("foo", "id", "bar", null),
                                           DefContent.fromList(List.of()), "fromHost",
                                           payloadChecksums, 1, 1, Trace.createDummy(),
                                           CompressionType.UNCOMPRESSED, Optional.empty())
                .getRequest();
        JRTServerConfigRequestV3 v3Request = JRTServerConfigRequestV3.createFromRequest(request);
        handler.resolveConfig(v3Request);
    }