Source:
<code>public void testAllContents() { Message<byte[]> received = (Message<byte[]>) this.data.receive(10000); assertNotNull(received); assertThat(new String(received.getPayload()), equalTo("source1")); String fileInfo = (String) received.getHeaders().get(FileHeaders.REMOTE_FILE_INFO); assertThat(fileInfo, containsString("remoteDirectory\":\"ftpSource")); assertThat(fileInfo, containsString("permissions\":\"-rw-------")); assertThat(fileInfo, containsString("size\":7")); assertThat(fileInfo, containsString("directory\":false")); assertThat(fileInfo, containsString("filename\":\" ftpSource1.txt")); assertThat(fileInfo, containsString("modified\":")); assertThat(fileInfo, containsString("link\":false")); received = (Message<byte[]>) this.data.receive(10000); assertNotNull(received); assertThat(new String(received.getPayload()), equalTo("source2")); fileInfo = (String) received.getHeaders().get(FileHeaders.REMOTE_FILE_INFO); assertThat(fileInfo, containsString("remoteDirectory\":\"ftpSource")); assertThat(fileInfo, containsString("permissions\":\"-rw-------")); assertThat(fileInfo, containsString("size\":7")); assertThat(fileInfo, containsString("directory\":false")); assertThat(fileInfo, containsString("filename\":\"ftpSource2.txt")); assertThat(fileInfo, containsString("modified\":")); assertThat(fileInfo, containsString("link\":false")); this.adapter.stop(); this.source.setFileInfoJson(false); <START> this.data.purge(null); <END> this.adapter.start(); received = (Message<byte[]>) this.data.receive(10000); assertNotNull(received); assertThat(received.getHeaders().get(FileHeaders.REMOTE_FILE_INFO), instanceOf(FTPFile.class)); this.adapter.stop(); }</code><technical_language>is purpose of this removal</technical_language>

Target:
public void testAllContents() { Message<byte[]> received = (Message<byte[]>) this.data.receive(10000); assertNotNull(received); assertThat(new String(received.getPayload()), equalTo("source1")); String fileInfo = (String) received.getHeaders().get(FileHeaders.REMOTE_FILE_INFO); assertThat(fileInfo, containsString("remoteDirectory\":\"ftpSource")); assertThat(fileInfo, containsString("permissions\":\"-rw-------")); assertThat(fileInfo, containsString("size\":7")); assertThat(fileInfo, containsString("directory\":false")); assertThat(fileInfo, containsString("filename\":\" ftpSource1.txt")); assertThat(fileInfo, containsString("modified\":")); assertThat(fileInfo, containsString("link\":false")); received = (Message<byte[]>) this.data.receive(10000); assertNotNull(received); assertThat(new String(received.getPayload()), equalTo("source2")); fileInfo = (String) received.getHeaders().get(FileHeaders.REMOTE_FILE_INFO); assertThat(fileInfo, containsString("remoteDirectory\":\"ftpSource")); assertThat(fileInfo, containsString("permissions\":\"-rw-------")); assertThat(fileInfo, containsString("size\":7")); assertThat(fileInfo, containsString("directory\":false")); assertThat(fileInfo, containsString("filename\":\"ftpSource2.txt")); assertThat(fileInfo, containsString("modified\":")); assertThat(fileInfo, containsString("link\":false")); this.adapter.stop(); this.source.setFileInfoJson(false); this.data.purge(null); this.adapter.start(); received = (Message<byte[]>) this.data.receive(10000); assertNotNull(received); assertThat(received.getHeaders().get(FileHeaders.REMOTE_FILE_INFO), instanceOf(FtpFileInfo.class)); this.adapter.stop(); }