Add rotate-windows function & bindings
Add mockito snippet