StarTreeRecordImpl implements StarTreeRecord { @Override public StarTreeRecord aliasOther(String dimensionName) { return aliasOther(Arrays.asList(dimensionName)); } StarTreeRecordImpl(StarTreeConfig config,
                            DimensionKey dimensionKey,
                            MetricTimeSeries metricTimeSeries); @Override StarTreeConfig getConfig(); @Override DimensionKey getDimensionKey(); @Override MetricTimeSeries getMetricTimeSeries(); @Override StarTreeRecord relax(String dimensionName); @Override StarTreeRecord relax(Collection<String> dimensionNames); @Override StarTreeRecord aliasOther(String dimensionName); @Override StarTreeRecord aliasOther(Collection<String> otherDimensionNames); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString();  }
@Test public void testAliasOther() throws Exception { StarTreeRecord aliased = record.aliasOther("A"); Assert.assertEquals(aliased.getDimensionKey().getDimensionValue(config.getDimensions(), "A"), StarTreeConstants.OTHER); }