public void testCreateDatasourcesDMR() throws Exception {
ModelControllerClient mcc = mock(ModelControllerClient.class);
// note that this doesn't test actually creating anything - it just tests the DMR can be parsed successfully
when(mcc.execute(any(ModelNode.class), any(OperationMessageHandler.class))).thenAnswer(new Answer<ModelNode>() {
public ModelNode answer(InvocationOnMock invocation) throws Throwable {
System.out.println("~~~~~~~\n" + invocation.getArguments()[0]);
ModelNode retNode = mockSuccess.clone();
ModelNode resultNode = retNode.get(JBossASClient.RESULT);
resultNode.get(DatasourceJBossASClient.DATA_SOURCE).setEmptyList();