}
@Test
public void createDataSources() throws Exception
{
DataSourceStore store = injector.getInstance(DataSourceStore.class);
TestCallback<ResponseWrapper<Boolean>> callback = new TestCallback<ResponseWrapper<Boolean>>() {
@Override
public void onSuccess(ResponseWrapper<Boolean> response) {
assertTrue("Expected successful outcome", response.getUnderlying());
didCallback = true;
}
};
DataSource entity = createEntity();
store.createDataSource(entity, callback);
synchronized (callback) {
callback.wait(500);
}