*
* @throws RemoteException
* the remote exception
*/
public void testAddArticleReserved() throws RemoteException {
DBServerInterface server = DBServerImpl.getInstance();
// Setzte reserved von artikel mit id 4 auf 8
server.setArticleReserved(4, 8);
assertEquals(server.getArticleReserved(4), 8);
int sumbefore = server.getArticleReserved(4) + server.getArticleAvailable(4);
// füge zwei hinzu
server.buyArticle(4, 2);
assertEquals(server.getArticleReserved(4), 10);
// füge zwei hinzu
server.buyArticle(4, 2);
assertEquals(server.getArticleReserved(4), 12);
// entferne zwei
server.buyArticle(4, -2);
assertEquals(server.getArticleReserved(4), 10);
int sumafter = server.getArticleReserved(4) + server.getArticleAvailable(4);
assertEquals (sumbefore, sumafter);
}