* Try to adapt to interface, with an different implementation class that has the @Model annotation
*/
@Test
public void testImplementsInterfaceModelWithPickLastImplementationPicker() throws RepositoryException {
Session session = resolver.adaptTo(Session.class);
Node node = resource.adaptTo(Node.class);
Node childNode = node.addNode(CustomLastImplementationPicker.CUSTOM_NAME);
childNode.setProperty("first", firstValue);
childNode.setProperty("third", thirdValue);
session.save();
Resource childResource = resolver.getResource(childNode.getPath());
SampleServiceInterface model = adapterManager.getAdapter(childResource, SampleServiceInterface.class);
assertNotNull(model);
assertEquals(ImplementsInterfacePropertyModel2.class, model.getClass());
assertEquals(firstValue + "|" + secondValue + "|" + thirdValue, model.getAllProperties());
childNode.remove();
session.save();
}