assertNotNull(client.resolve(ExternalId.of("Test", "Foo").toBundle(), null, null, null, "PX_LAST", "resolutionkey"), null);
}
public void testGetAdjustment() {
final MockResolver resolver = new MockResolver();
final HistoricalTimeSeriesResolver client = mockConnection(resolver);
resolver.setIdentifierBundle(ExternalIdBundle.of(ExternalId.of("Test1", "Foo"), ExternalId.of("Test2", "Foo")));
resolver.setDataField("PX_LAST");
final MockAdjuster adjuster = new MockAdjuster();
adjuster.setIdentifierBundle(ExternalIdBundle.of(ExternalId.of("Test1", "Foo"), ExternalId.of("Test2", "Foo")));
adjuster.setResult(new HistoricalTimeSeriesAdjustment.DivideBy(100d));
resolver.setResult(new HistoricalTimeSeriesResolutionResult(new ManageableHistoricalTimeSeriesInfo(), adjuster));
final HistoricalTimeSeriesResolutionResult result = client.resolve(ExternalIdBundle.of(ExternalId.of("Test1", "Foo"), ExternalId.of("Test2", "Foo")), null, null, null, "PX_LAST", null);
assertNotNull(result);
adjuster.setIdentifierBundle(ExternalIdBundle.of(ExternalId.of("Test1", "Foo")));
adjuster.setResult(HistoricalTimeSeriesAdjustment.NoOp.INSTANCE);
HistoricalTimeSeriesAdjustment adjustment = result.getAdjuster().getAdjustment(ExternalIdBundle.of(ExternalId.of("Test1", "Foo"), ExternalId.of("Test2", "Foo")));
assertEquals(adjustment.toString(), "100.0 /");