### Question:
FilesystemExportContextProvider implements Provider<FilesystemExportContext> { @Override public FilesystemExportContext get() { ExecutionContext ec = this.execution.getContext(); FilesystemExportContext exportContext = (FilesystemExportContext) ec.getProperty(CONTEXT_KEY); if (exportContext == null) { exportContext = new FilesystemExportContext(); newProperty(ec, exportContext); } return exportContext; }  @Override FilesystemExportContext get(); static void set(ExecutionContext ec, FilesystemExportContext exportContext);  }### Answer:
@Test public void getWhenExportContextNotInEC() throws Exception { FilesystemExportContext fec = this.provider.get(); assertSame(fec, ec.getProperty("filesystemExportContext")); }
@Test public void getWhenExportContextAlreadyInEC() throws Exception { FilesystemExportContext fec = new FilesystemExportContext(); ec.setProperty("filesystemExportContext", fec); FilesystemExportContext newfec = this.provider.get(); assertSame(newfec, ec.getProperty("filesystemExportContext")); assertSame(newfec, fec); }