@@ -0,0 +1,1307 @@
+package com.mesosphere.sdk.state;%0A%0Aimport com.mesosphere.sdk.storage.MemPersister;%0Aimport com.mesosphere.sdk.storage.Persister;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.hamcrest.Matchers.is;%0A%0A/**%0A * Tests for %7B@link StateStoreUtils%7D.%0A */%0Apublic class StateStoreUtilsTest %7B%0A%0A    @Test%0A    public void emptyStateStoreReturnsEmptyArray () %7B%0A        final StateStore stateStore = new DefaultStateStore(new MemPersister());%0A%0A        byte%5B%5D result = StateStoreUtils.fetchPropertyOrEmptyArray(stateStore, %22UNDEFINED%22);%0A%0A        assertThat(result.length, is(0));%0A    %7D%0A%0A    @Test%0A    public void unmatchedKeyReturnsEmptyArray() %7B%0A        final StateStore stateStore = new DefaultStateStore(new MemPersister());%0A        stateStore.storeProperty(%22DEFINED%22, %22VALUE%22.getBytes());%0A%0A        byte%5B%5D result = StateStoreUtils.fetchPropertyOrEmptyArray(stateStore, %22UNDEFINED%22);%0A%0A        assertThat(result.length, is(0));%0A    %7D%0A%0A    @Test%0A    public void matchedKeyReturnsValue() %7B%0A        final StateStore stateStore = new DefaultStateStore(new MemPersister());%0A        stateStore.storeProperty(%22DEFINED%22, %22VALUE%22.getBytes());%0A%0A        byte%5B%5D result = StateStoreUtils.fetchPropertyOrEmptyArray(stateStore, %22DEFINED%22);%0A%0A        assertThat(result, is(%22VALUE%22.getBytes()));%0A    %7D%0A%0A%7D%0A

Add unit tests for fetchPropertyOrEmptyArray