@Test
public void addAlienBinaryProperty() throws RepositoryException, IOException {
Session session = getAdminSession();
QValue qValue = QValueFactoryImpl.getInstance().create("binaryValue".getBytes());
Value value = new QValueValue(qValue, new DefaultNamePathResolver(session));
getNode(TEST_PATH).setProperty("binary", value);
session.save();
Value valueAgain = getNode(TEST_PATH).getProperty("binary").getValue();
assertEqualStream(value.getBinary().getStream(), valueAgain.getBinary().getStream());
}