import static com.google.appengine.api.datastore.FetchOptions.Builder.withLimit;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.EntityNotFoundException;
import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;
import com.google.appengine.api.datastore.Query;
import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;
import com.google.appengine.tools.development.testing.LocalServiceTestHelper;
import static org.junit.Assert.assertEquals;
import org.junit.Assert;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

/**

* TEST CLASSES AND THERE FILES HAVE TO FOLLOW ANY OF THE FOLLOWING NAMING CONVENTIONS DUE TO MAVEN
* [rest of name]Test.java -> BlahBlahBlahTest.java
* Test[rest of name].java -> TestBlahBlahBlah.java
*/

public class DatastoreTest {

  /** 
  * Maximum eventual consistency. [https://en.wikipedia.org/wiki/Eventual_consistency] 
  * TL;DR, some writes will commit but will always fail to apply...
  * this means we can't see them with global queries, strong consistency queries like ancestor queries will work
  */
  static final String TEST_DUMMY_NAME = "Dummy";
  static final String TEST_DUMMY_PARENT_NAME = "DummyParent";
  private final LocalServiceTestHelper helper =
      new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig()
          .setDefaultHighRepJobPolicyUnappliedJobPercentage(100));

    @Before
    public void setUp() {
        helper.setUp();
    }

    @After
    public void tearDown() {
        helper.tearDown();
    }

    //Test case to assure that we can start the Datastore service
    @Test
    public void DatastoreServiceStarts(){
        DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
        assertEquals(true, ds != null);
    }

    //Test to make sure that entities are properly posted into datastore (Checked with entities key)
    @Test
    public void EntitiesArePutInDatastore(){
        DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
        Entity dummy = new Entity(TEST_DUMMY_NAME);
        ds.put(dummy);
        try {
            assertEquals(true, ds.get(dummy.getKey()) != null);
        } catch(EntityNotFoundException e) {
            Assert.fail("Entity not found in Database");
        }
  }
    //Test to make sure that we can query for entities using the key obtained from .getParent()
    @Test
    public void EntitiesCanHaveParentsUsingKeys(){
        DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
        Entity dummyParent = new Entity(TEST_DUMMY_PARENT_NAME);
        ds.put(dummyParent);
        Key dummyParentKey = dummyParent.getKey();
        Entity dummy = new Entity(TEST_DUMMY_NAME, dummyParentKey);
        ds.put(dummy);
        Key queriedDummyParentKey = dummy.getParent();
        Entity queriedDummyParent; 
        try {
            queriedDummyParent = ds.get(queriedDummyParentKey);
            assertEquals(true, queriedDummyParent != null);
        } catch(EntityNotFoundException e){
            Assert.fail("Entity not found in Database");
        }
    }
    //Make sure we can grab properties from datastore using .getProperty()
    @Test
    public void EntityPropertiesArePutInDatastore(){
        DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
        String dummyString = "Bananas";
        Entity dummy = new Entity(TEST_DUMMY_NAME);
        dummy.setProperty("Fruit", dummyString);
        ds.put(dummy);
        Key dummyKey = dummy.getKey();
        Entity queriedDummy;
        try {
            queriedDummy = ds.get(dummyKey);
            assertEquals(true, queriedDummy.getProperty("Fruit").toString().equals(dummyString));
        } catch(EntityNotFoundException e){
            Assert.fail("Entity not found in Database");
        }
    }
}
@@ -74,16 +74,61 @@
 hLimit;%0A
+import static org.junit.Assert.assertEquals;%0A
 import c
@@ -682,53 +682,8 @@
 er;%0A
-import static org.junit.Assert.assertEquals;%0A
 impo

Fix import statement order