@Test
	public void testPersistencyHandler() {
		PersistenceHandler ph = PersistenceHandler.getInstance();
		ph.loadDb();
		try {
			ph.write(new MusicPersisted("/home/andreluiz/a.mp3"));
			ph.write(new MusicPersisted("/home/andreluiz/b.mp3"));
			ph.write(new UserPersisted("andrelgsl@gmail.com",
										"1234", 24, 8, 1989));				
		} catch (CannotReadException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (TagException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ReadOnlyFileException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InvalidAudioFrameException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		ph.readMusicBuffer();
		ph.readUserBuffer();
		User u = ph.getUserBuffer().get(new Email("andrelgsl@gmail.com"));
		System.out.println(Password.comparePasswords(u.getPassword(), "1234"));
		ph.saveAll();
	}