### Question:
ProcessFormService { public long getProcessDefinitionId(final APISession apiSession, final String processName, final String processVersion) throws ProcessDefinitionNotFoundException, BonitaException { if (processName != null && processVersion != null) { try { return getProcessAPI(apiSession).getProcessDefinitionId(processName, processVersion); } catch (final ProcessDefinitionNotFoundException e) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Wrong parameters for process name and version", e); } } } return -1L; }  String getProcessPath(final APISession apiSession, final long processDefinitionId); String encodePathSegment(final String stringToEncode); long getProcessDefinitionId(final APISession apiSession, final String processName, final String processVersion); long getTaskInstanceId(final APISession apiSession, final long processInstanceId, final String taskName, final long userId); String getTaskName(final APISession apiSession, final long taskInstanceId); long ensureProcessDefinitionId(final APISession apiSession, final long processDefinitionId, final long processInstanceId, final long taskInstanceId); boolean isAllowedToSeeTask(final APISession apiSession, final long taskInstanceId, final long enforcedUserId,
            final boolean assignTask); boolean isAllowedToSeeProcessInstance(final APISession apiSession, final long processInstanceId,
            final long enforcedUserId); boolean isAllowedToStartProcess(final APISession apiSession, final long processDefinitionId, final long enforcedUserId); boolean isAllowedAsAdminOrProcessSupervisor(final HttpServletRequest request, final APISession apiSession, final long processDefinitionId,
            final long taskInstanceId, final long userId, final boolean assignTask);  }### Answer:
@Test public void getProcessDefinitionId_with_no_version() throws Exception { assertEquals(-1L, processFormService.getProcessDefinitionId(apiSession, "myProcess", null)); }
@Test public void getProcessDefinitionId_with_no_name_and_version() throws Exception { assertEquals(-1L, processFormService.getProcessDefinitionId(apiSession, null, null)); }