### Question:
InstanceIdConverter extends AbstractConverter<InstanceId> { @Override protected InstanceId convertToType(Type targetType, Object value) { if (value == null) { return null; } return new InstanceId(value.toString()); }    }### Answer:
@Test public void convertFromString() throws Exception { InstanceId id = this.mocker.getComponentUnderTest().convertToType(InstanceId.class, "b6ad6165-daaf-41a1-8a3f-9aa81451c402"); assertEquals("b6ad6165-daaf-41a1-8a3f-9aa81451c402", id.getInstanceId()); }