I use the InternalButton class for testing. If you declare your buttons in RobotContainer as Buttons , you can instantiate them with either JoystickButton (not sim) or InternalButton (sim).
https://first.wpi.edu/FRC/roborio/beta/docs/java/edu/wpi/first/wpilibj/buttons/InternalButton.html
