@Test public void getStreamReturnsStream_whenFileExists() { Optional<InputStream> fileStream = ConnectorUtils.getStreamForMappingsFile(MAPPINGS_FILE); assertThat(fileStream).isPresent(); }
static Optional<InputStream> getStreamForMappingsFile(String filePath) { return Optional.ofNullable(ConnectorUtils.class.getResourceAsStream(filePath)); }
ConnectorUtils { static Optional<InputStream> getStreamForMappingsFile(String filePath) { return Optional.ofNullable(ConnectorUtils.class.getResourceAsStream(filePath)); } }
ConnectorUtils { static Optional<InputStream> getStreamForMappingsFile(String filePath) { return Optional.ofNullable(ConnectorUtils.class.getResourceAsStream(filePath)); }  }
ConnectorUtils { static Optional<InputStream> getStreamForMappingsFile(String filePath) { return Optional.ofNullable(ConnectorUtils.class.getResourceAsStream(filePath)); }   }
ConnectorUtils { static Optional<InputStream> getStreamForMappingsFile(String filePath) { return Optional.ofNullable(ConnectorUtils.class.getResourceAsStream(filePath)); }    }