DataSetProviderTypeWorkflow extends DataSetEditorWorkflow<DataSetDef> { public DataSetProviderType getProviderType() { return providerTypeEditor.provider().getValue(); } @Inject  DataSetProviderTypeWorkflow(final DataSetClientServices clientServices,
                                       final DataSetValidatorProvider validatorProvider,
                                       final SyncBeanManager beanManager,
                                       final DataSetDefProviderTypeEditor providerTypeEditor,
                                       final Event<SaveRequestEvent> saveRequestEvent,
                                       final Event<CancelRequestEvent> cancelRequestEvent,
                                       final Event<TestDataSetRequestEvent> testDataSetEvent,
                                       final View view); @PostConstruct void init(); DataSetProviderTypeWorkflow edit(final DataSetDef def); DataSetProviderType getProviderType(); DataSetProviderTypeWorkflow providerTypeEdition();  }
@Test public void testProviderTypeValue() { when( provider.getValue() ).thenReturn( DataSetProviderType.SQL ); assertEquals( DataSetProviderType.SQL, presenter.getProviderType() ); }