You define the format for parsing the dd-MM-yyyy date:
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy");
but then you specify the date in a format that does not match this:
datePicker.setValue(LOCAL_DATE("2016-05-01"));
Obviously, "2016-05-01" not in the "dd-MM-yyyy" format.
Try
datePicker.setValue(LOCAL_DATE("01-05-2016"));
source share