@SuppressWarnings("deprecated")
@Test
public void testGetStream() throws Exception {

    Property delegate = mock(Property.class);
    PropertyFacade<Session> facade = getFacade(delegate);
    final InputStream value = mock(InputStream.class);
    when(delegate.getStream()).thenReturn(value);
    assertSame("same value", value, facade.getStream());
}