Use Rectangle instead of Bounds (travis doesn't have javafx packages)