@Before
 public void setupLibrary() {
   directory = TestUtils.buildTestDirectory(getClass());
   library = new MediaLibrary();
   library.setName("I like monkeys");
   library.setBaseDirectory(directory);
 }
 @Test(expected = DuplicateMediaLibraryException.class)
 public void testDuplicateMediaLibraryName() throws DuplicateMediaLibraryException {
   MediaLibrary duplicate = new MediaLibrary();
   duplicate.setName("I like monkeys");
   duplicate.setBaseDirectory(TestUtils.buildTestDirectory(getClass()));
   dao.save(library);
   dao.save(duplicate);
 }