@Test
@PrepareForTest(WriteProjectFile.class)
public void testExecute() throws Exception {

  // Given
  mockStatic(Files.class);
  final BufferedWriter bufferedWriter = mock(BufferedWriter.class);
  when(Files.newBufferedWriter(any(Path.class))).thenReturn(bufferedWriter);
  // When
  final WriteProjectFile command = new WriteProjectFile();
  command.setArguments(singletonList(randomUUID().toString()));
  command.execute();
  // Then
  verify(bufferedWriter).write(any(char[].class), anyInt(), anyInt());
}