EnvironmentScript implements VirtualFile { @NotNull @Override public String getDisplayName() { return '[' + environmentName + "] " + data.getName(); } EnvironmentScript(ItemReference data,
                             ProjectServiceClient projectServiceClient,
                             String environmentName); @NotNull @Override String getPath(); @NotNull @Override String getName(); @NotNull @Override String getDisplayName(); @Nullable @Override String getMediaType(); @Override boolean isReadOnly(); @Nullable @Override HasProjectDescriptor getProject(); @Override String getContentUrl(); @Override Promise<String> getContent(); @Override Promise<Void> updateContent(final String content);  }
@Test public void displayNameShouldBeReturned() { String expectedDisplayName = '[' + ENVIRONMENT_NAME + "] " + TEXT; assertThat(environmentScript.getDisplayName(), is(expectedDisplayName)); }