@Test
	public void UpdateFilesTest() {
		this.observable.addObserver(this.mockObserver);
		
		assertEquals(this.mockObserver.nbTimesUpdated,0);
		File dropins = new File("./dropins/plugins/");
		int preUpdate=0;
		if(dropins.listFiles().length!=0){
			try {
				this.observable.updateFiles();
			} catch (ClassNotFoundException e) {
				e.printStackTrace();
			} catch (IOException e) {
				e.printStackTrace();
			}
			preUpdate++;
		}
		
		File wrongPlugin = new File(dropins.getAbsolutePath()+"/JUnitTest_wrongPlugin.java");
		wrongPlugin.deleteOnExit();
		System.out.println(wrongPlugin.getAbsolutePath());
		try {
			wrongPlugin.createNewFile();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		try {
			this.observable.updateFiles();
		} catch (ClassNotFoundException e1) {
			e1.printStackTrace();
		} catch (IOException e1) {
			e1.printStackTrace();
		}
		
		assertEquals(this.mockObserver.nbTimesUpdated,0+preUpdate); // nothing found
		
		File acceptablePlugin = new File(dropins.getAbsolutePath()+"/JUnitTest_acceptablePlugin.class");
		acceptablePlugin.deleteOnExit();
		try {
			acceptablePlugin.createNewFile();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		try {
			this.observable.updateFiles();
		} catch (ClassNotFoundException e1) {
			e1.printStackTrace();
		} catch (IOException e1) {
			e1.printStackTrace();
		}
		
		assertEquals(this.mockObserver.nbTimesUpdated,1+preUpdate); // something found
				
	}