ConnectorFile { public ImmutableMap<String, Object> getProperties() { return properties; } ConnectorFile(File connectorFile); ChangeSet getChanges(File file); void update(File file); Properties toProperties(); static Boolean isRootService(File connectorFile); String getName(); String getDomainType(); String getConnectorType(); ImmutableMap<String, String> getAttributes(); ImmutableMap<String, Object> getProperties();  }
@Test public void testInitialzeWithArray_shouldReturnArrayProperty() throws Exception { FileUtils.writeLines(connectorFile, Arrays.asList( "domainType=d", "connectorType=c", "property.foo=bar,42")); ConnectorFile fileObject = new ConnectorFile(connectorFile); String[] values = (String[]) fileObject.getProperties().get("foo"); assertThat(Arrays.asList(values), hasItems("bar", "42")); }