@@ -0,0 +1,1529 @@
+/***************************** BEGIN LICENSE BLOCK ***************************%0D%0A%0D%0AThe contents of this file are subject to the Mozilla Public License, v. 2.0.%0D%0AIf a copy of the MPL was not distributed with this file, You can obtain one%0D%0Aat http://mozilla.org/MPL/2.0/.%0D%0A%0D%0ASoftware distributed under the License is distributed on an %22AS IS%22 basis,%0D%0AWITHOUT WARRANTY OF ANY KIND, either express or implied. See the License%0D%0Afor the specific language governing rights and limitations under the License.%0D%0A %0D%0ACopyright (C) 2012-2015 Sensia Software LLC. All Rights Reserved.%0D%0A %0D%0A******************************* END LICENSE BLOCK ***************************/%0D%0A%0D%0Apackage org.sensorhub.impl.persistence.es;%0A%0Aimport java.io.File;%0D%0A%0D%0Aimport org.junit.After;%0D%0Aimport org.junit.Before;%0D%0Aimport org.sensorhub.test.persistence.AbstractTestObsStorage;%0A%0A%0Apublic class TestEsObsStorage extends AbstractTestObsStorage%3CESObsStorageImpl%3E%0D%0A%7B%0D%0A    File dbFile;%0D%0A    %0D%0A    %0D%0A    @Before%0D%0A    public void init() throws Exception%0D%0A    %7B%0D%0A        ESStorageConfig config = new ESStorageConfig();%0D%0A        config.autoStart = true;%0D%0A        config.storagePath = dbFile.getAbsolutePath();%0D%0A        %0D%0A        storage = new ESObsStorageImpl();%0D%0A        storage.init(config);%0D%0A        storage.start();%0D%0A    %7D%0D%0A    %0D%0A%0D%0A    @Override%0D%0A    protected void forceReadBackFromStorage() throws Exception%0D%0A    %7B%0D%0A        storage.stop();%0D%0A        storage.start();%0D%0A    %7D%0D%0A    %0D%0A    %0D%0A    @After%0D%0A    public void cleanup()%0D%0A    %7B%0D%0A        dbFile.delete();%0D%0A    %7D%0D%0A    %0D%0A%7D%0D%0A

Add some test