public ProcessDefinitionResponse getProcessDefinition(String processName) {
        if (ObjectHelper.isEmpty(processName)) {
            throw new IllegalArgumentException("processName is empty.");
        }
        WebTarget resource = getBaseResource().path("process").queryParam("s", processName);
        List<ProcessDefinitionResponse> listProcess = resource.request().accept(MediaType.APPLICATION_JSON)
                .get(new GenericType<List<ProcessDefinitionResponse>>() {
                });
        if (!listProcess.isEmpty()) {
            return listProcess.get(0);
        } else {
            throw new RuntimeCamelException(
                    "The process with name " + processName + " has not been retrieved");
        }
    }
@Test
    public void testGetProcessDefinitionEmptyInput() {
        BonitaAPI bonitaApi = BonitaAPIBuilder
                .build(new BonitaAPIConfig("hostname", "port", "username", "password"));
        assertThrows(IllegalArgumentException.class,
                () -> bonitaApi.getProcessDefinition(""));
    }