StudioWorkspaceResourceHandler implements WorkspaceResourceHandler { @Override public void postImport() { doPost(null, WorkspaceResourceEvent.POST_IMPORT); } @Inject  StudioWorkspaceResourceHandler(RestClient restClient); @Override void preOpen(final Path filePath); @Override void postClose(final Path filePath); @Override void delete(Path filePath); @Override void postDelete(final Path filePath); @Override void postSave(final Path filePath); @Override void preImport(); @Override void postImport(); @Override LockStatus getLockStatus(final Path filePath);  }
@Test public void should_postImport_post_to_workspace_rest_api() throws Exception { server.request(by(uri("/workspace/POST_IMPORT"))).response(status(HttpStatus.OK.value())); studioWorkspaceResourceHandler.postImport(); }