### Question:
DefaultBuildContextState implements Serializable { public static DefaultBuildContextState emptyState() { return new DefaultBuildContextState(Collections.<String, Serializable>emptyMap() , Collections.<Object, ResourceHolder<?>>emptyMap() , Collections.<File>emptySet() , Collections.<Object, Collection<File>>emptyMap() , Collections.<File, Collection<Object>>emptyMap() , Collections.<Object, Map<String, Serializable>>emptyMap() , Collections.<Object, Collection<Message>>emptyMap() ); } private  DefaultBuildContextState(Map<String, Serializable> configuration //
      , Map<Object, ResourceHolder<?>> inputs //
      , Set<File> outputs //
      , Map<Object, Collection<File>> resourceOutputs //
      , Map<File, Collection<Object>> outputInputs //
      , Map<Object, Map<String, Serializable>> resourceAttributes //
      , Map<Object, Collection<Message>> resourceMessages); static DefaultBuildContextState withConfiguration(
      Map<String, Serializable> configuration); static DefaultBuildContextState emptyState(); String getStats(); void storeTo(OutputStream os); static DefaultBuildContextState loadFrom(File stateFile); void putResource(Object resource, ResourceHolder<?> holder); ResourceHolder<?> getResource(Object resource); boolean isResource(Object resource); ResourceHolder<?> removeResource(Object resource); Map<Object, ResourceHolder<?>> getResources(); Collection<Object> getOutputInputs(File outputFile); Collection<File> getOutputs(); boolean isOutput(Object outputFile); boolean addOutput(File output); boolean removeOutput(File output); boolean putResourceOutput(Object resource, File output); Collection<File> getResourceOutputs(Object resource); Collection<File> setResourceOutputs(Object resource, Collection<File> outputs); Collection<File> removeResourceOutputs(Object resource); Map<String, Serializable> removeResourceAttributes(Object resource); Map<String, Serializable> getResourceAttributes(Object resource); Serializable putResourceAttribute(Object resource, String key, Serializable value); Serializable getResourceAttribute(Object resource, String key); Map<String, Serializable> setResourceAttributes(Object resource,
      Map<String, Serializable> attributes); Collection<Message> removeResourceMessages(Object resource); Collection<Message> getResourceMessages(Object resource); Collection<Message> setResourceMessages(Object resource, Collection<Message> messages); boolean addResourceMessage(Object resource, Message message); Map<Object, Collection<Message>> getResourceMessages();  }### Answer:
@Test public void testEmptyState() throws Exception { Assert.assertTrue(DefaultBuildContextState.loadFrom(temp.newFile()).configuration.isEmpty()); }