### Question:
ModeShapeWebdavStore implements IWebdavStore { @Override public void commit( ITransaction transaction ) { CheckArg.isNotNull(transaction, "transaction"); assert transaction instanceof JcrSessionTransaction; ((JcrSessionTransaction)transaction).commit(); } ModeShapeWebdavStore( RequestResolver uriResolver );  ModeShapeWebdavStore( String contentPrimaryTypes,
                                 String filePrimaryTypes,
                                 String newFolderPrimaryType,
                                 String newResourcePrimaryType,
                                 String newContentPrimaryType,
                                 RequestResolver requestResolver ); @Override ITransaction begin( Principal principal ); @Override void commit( ITransaction transaction ); @Override void rollback( ITransaction transaction ); @Override void checkAuthentication( ITransaction transaction ); @Override void createFolder( ITransaction transaction,
                              String folderUri ); @Override void createResource( ITransaction transaction,
                                String resourceUri ); @Override String[] getChildrenNames( ITransaction transaction,
                                      String folderUri ); @Override InputStream getResourceContent( ITransaction transaction,
                                           String resourceUri ); @Override long getResourceLength( ITransaction transaction,
                                   String uri ); @Override StoredObject getStoredObject( ITransaction transaction,
                                         String uri ); @Override void removeObject( ITransaction transaction,
                              String uri ); @Override long setResourceContent( ITransaction transaction,
                                    String resourceUri,
                                    InputStream content,
                                    String contentType,
                                    String characterEncoding );  }### Answer:
@Test public void shouldCommitTransaction() throws Exception { store.commit(tx); }
@Test( expected = IllegalArgumentException.class ) public void shouldNotCommitNullTransaction() throws Exception { store.commit(null); }