@Test
public void testExecute() throws Exception {

  // Given
  final BuildProjectCommandMode buildProjectCommandMode = mock(BuildProjectCommandMode.class);
  final Function<Options, BuildProjectCommandMode> factory = options -> buildProjectCommandMode;
  final BuildProject buildProject = new BuildProject();
  buildProject.setCommandFactory(factory);
  // When
  buildProject.execute();
  // Then
  verify(buildProjectCommandMode).execute();
}