WorkflowInstanceFactory { public WorkflowInstance.Builder newWorkflowInstanceBuilder() { return new WorkflowInstance.Builder(objectMapper); } @Inject  WorkflowInstanceFactory(ObjectStringMapper objectMapper); WorkflowInstance.Builder newWorkflowInstanceBuilder();  }
@Test public void newWorkflowInstanceBuilder() { Builder builder = factory.newWorkflowInstanceBuilder(); assertThat(builder, is(notNullValue())); builder.build(); }