### Question:
FileSystemStorage extends Configured implements Storage { @Override public TYPE getType() { return TYPE.FILESYSTEM; } FileSystemStorage(Feed feed); protected  FileSystemStorage(String storageUrl, Locations locations); protected  FileSystemStorage(String storageUrl, List<Location> locations); protected  FileSystemStorage(String uriTemplate); @Override TYPE getType(); String getStorageUrl(); List<Location> getLocations(); @Override String getUriTemplate(); @Override String getUriTemplate(LocationType locationType); String getUriTemplate(LocationType locationType, List<Location> locationList); Path getWorkingDir(); @Override boolean isIdentical(Storage toCompareAgainst); static Location getLocation(List<Location> locations, LocationType type); @Override void validateACL(AccessControlList acl); @Override StringBuilder evict(String retentionLimit, String timeZone, Path logFilePath); @Override @SuppressWarnings("MagicConstant") List<FeedInstanceStatus> getListing(Feed feed, String clusterName, LocationType locationType,
                                               Date start, Date end); @Override FeedInstanceStatus.AvailabilityStatus getInstanceAvailabilityStatus(Feed feed, String clusterName,
                                                                   LocationType locationType,
                                                                   Date instanceTime); FileStatus getFileStatus(FileSystem fileSystem, Path feedInstancePath); Configuration getConf(); @Override String toString(); static final String FEED_PATH_SEP; static final String LOCATION_TYPE_SEP; static final String FILE_SYSTEM_URL; }### Answer:
@Test public void testGetType() throws Exception { final Location location = new Location(); location.setPath("/foo/bar"); location.setType(LocationType.DATA); List<Location> locations = new ArrayList<Location>(); locations.add(location); FileSystemStorage storage = new FileSystemStorage(FileSystemStorage.FILE_SYSTEM_URL, locations); Assert.assertEquals(storage.getType(), Storage.TYPE.FILESYSTEM); }