}
@Test
public void testResolveTarget_WithAnnotatedMethodAndStringVersion() {
final UUID aggregateIdentifier = UUID.randomUUID();
VersionedAggregateIdentifier actual = testSubject.resolveTarget(asCommandMessage(new Object() {
@TargetAggregateIdentifier
private UUID getIdentifier() {
return aggregateIdentifier;
}
@TargetAggregateVersion
private String version() {
return "1000230";
}
}));
assertEquals(aggregateIdentifier, actual.getIdentifier());
assertEquals((Long) 1000230L, actual.getVersion());
}