Counter readFromFile() throws IOException {
		if (storageDisabled) {
			return null;
		}
		final File file = getFile();
		if (file.exists()) {
			return readFromFile(file);
		}
		// ou on retourne null si le fichier n'existe pas
		return null;
	}
@Test
	public void testCorruptedFile() throws IOException {
		final File tempFile = corruptedTempFile.newFile("test.ser.gz");
		try (ObjectOutputStream outputStream = new ObjectOutputStream(
				new GZIPOutputStream(new FileOutputStream(tempFile)))) {
			outputStream.writeObject("java melody");
		}
		assertNull("String object can not be cast to the Counter, but the result should be null",
				CounterStorage.readFromFile(tempFile));
		assertFalse("corrupted file should be deleted", tempFile.exists());
	}