Source:
<code>public void testContainerBuilder() throws JSONException { for (int i = 0; i < CONTAINER_COUNT; i++) { ContainerBuilder containerBuilder = new ContainerBuilder(refContainerIds.get(i), refContainerNames.get(i), refContainerStatuses.get(i), refContainerDescriptions.get(i), refContainerEncryptionValues.get(i), refContainerPreviousEncryptionValues.get(i), refContainerCachingValues.get(i), refContainerMediaScanDisabledValues.get(i), refAccountId); Container containerFromBuilder = containerBuilder.build(); <START> assertContainer(containerFromBuilder, i, LATEST_CONTAINER_JSON_VERSION); <END> containerBuilder = new ContainerBuilder(containerFromBuilder); containerFromBuilder = containerBuilder.build(); assertContainer(containerFromBuilder, i, LATEST_CONTAINER_JSON_VERSION); boolean previouslyEncrypted = containerFromBuilder.wasPreviouslyEncrypted(); containerFromBuilder = new ContainerBuilder(containerFromBuilder).setEncrypted(false).build(); assertEncryptionSettings(containerFromBuilder, false, previouslyEncrypted); containerFromBuilder = new ContainerBuilder(containerFromBuilder).setEncrypted(true).setEncrypted(false).build(); assertEncryptionSettings(containerFromBuilder, false, previouslyEncrypted); containerFromBuilder = new ContainerBuilder(containerFromBuilder).setEncrypted(true).build(); assertEncryptionSettings(containerFromBuilder, true, true); containerFromBuilder = new ContainerBuilder(containerFromBuilder).setEncrypted(false).build(); assertEncryptionSettings(containerFromBuilder, false, true); } }</code><technical_language>I comfortable in constructing container w/ new fields is serialized deserialized, resets some of fields defaults. set defaults in constructor itself. drag this patch more. I feel of tests for tests V2 container V1</technical_language>

Target:
public void testContainerBuilder() throws JSONException { for (int i = 0; i < CONTAINER_COUNT; i++) { ContainerBuilder containerBuilder = new ContainerBuilder(refContainerIds.get(i), refContainerNames.get(i), refContainerStatuses.get(i), refContainerDescriptions.get(i), refContainerEncryptionValues.get(i), refContainerPreviousEncryptionValues.get(i), refContainerCachingValues.get(i), refContainerMediaScanDisabledValues.get(i), refAccountId); Container containerFromBuilder = containerBuilder.build(); assertContainer(containerFromBuilder, i); containerBuilder = new ContainerBuilder(containerFromBuilder); containerFromBuilder = containerBuilder.build(); assertContainer(containerFromBuilder, i); boolean previouslyEncrypted = containerFromBuilder.wasPreviouslyEncrypted(); containerFromBuilder = new ContainerBuilder(containerFromBuilder).setEncrypted(false).build(); assertEncryptionSettings(containerFromBuilder, false, previouslyEncrypted); containerFromBuilder = new ContainerBuilder(containerFromBuilder).setEncrypted(true).setEncrypted(false).build(); assertEncryptionSettings(containerFromBuilder, false, previouslyEncrypted); containerFromBuilder = new ContainerBuilder(containerFromBuilder).setEncrypted(true).build(); assertEncryptionSettings(containerFromBuilder, true, true); containerFromBuilder = new ContainerBuilder(containerFromBuilder).setEncrypted(false).build(); assertEncryptionSettings(containerFromBuilder, false, true); } }