Extension { public boolean hasMapping(String taskId) { return mappings.get(taskId) != null; }  Map<String, VariableDefinition> getProperties(); void setProperties(Map<String, VariableDefinition> properties); Map<String, ProcessVariablesMapping> getMappings(); void setMappings(Map<String, ProcessVariablesMapping> mappings); Map<String, ProcessConstantsMapping> getConstants(); void setConstants(Map<String, ProcessConstantsMapping> constants); ProcessConstantsMapping getConstantForFlowElement(String flowElementUUID); ProcessVariablesMapping getMappingForFlowElement(String flowElementUUID); VariableDefinition getProperty(String propertyUUID); VariableDefinition getPropertyByName(String name); boolean hasMapping(String taskId); boolean shouldMapAllInputs(String elementId); boolean shouldMapAllOutputs(String elementId);  }
@Test public void should_hasMappingReturnFalse_when_thereIsNoMapping() { Extension extension = new Extension(); assertThat(extension.hasMapping("elementId")).isFalse(); }