### Question:
ArchivaDavSession implements DavSession { @Override public void addReference( Object reference ) { throw new UnsupportedOperationException( "Not supported yet." ); }  @Override void addLockToken( String token ); @Override String[] getLockTokens(); @Override void removeLockToken( String token ); @Override void removeReference( Object reference ); @Override void addReference( Object reference );  }### Answer:
@Test public void testAddReferencesThrowsUnsupportedOperationException() { ArchivaDavSession session = new ArchivaDavSession(); try { session.addReference(new Object()); fail("Did not throw UnsupportedOperationException"); } catch (UnsupportedOperationException e) { assertTrue(true); } }