@Test public void getStreamReturnsEmpty_whenNoSuchFile() { Optional<InputStream> fileStream = ConnectorUtils.getStreamForMappingsFile("/blah"); assertThat(fileStream).isEmpty(); }
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)); }    }