public DecisionDefinition build() {
    DecisionDefinition mockDefinition = mock(DecisionDefinition.class);

    when(mockDefinition.getId()).thenReturn(id);
    when(mockDefinition.getCategory()).thenReturn(category);
    when(mockDefinition.getName()).thenReturn(name);
    when(mockDefinition.getKey()).thenReturn(key);
    when(mockDefinition.getVersion()).thenReturn(version);
    when(mockDefinition.getResourceName()).thenReturn(resource);
    when(mockDefinition.getDiagramResourceName()).thenReturn(diagramResource);
    when(mockDefinition.getDeploymentId()).thenReturn(deploymentId);
    when(mockDefinition.getTenantId()).thenReturn(tenantId);
    when(mockDefinition.getDecisionRequirementsDefinitionId())
        .thenReturn(decisionRequirementsDefinitionId);
    when(mockDefinition.getDecisionRequirementsDefinitionKey())
        .thenReturn(decisionRequirementsDefinitionKey);

    return mockDefinition;
  }