@Test
public void testIsFolderGeneratedInCorrectLocation() {

  File buildFolderPath = new File("build");
  Mockito.when(myAndroidProject.getBuildFolder()).thenReturn(buildFolderPath);
  File aFolderPath = new File(buildFolderPath, join("generated", "a"));
  File bFolderPath = new File("b");
  assertTrue(myGeneratedSourceFolders.isFolderGeneratedInCorrectLocation(aFolderPath, myAndroidProject));
  assertFalse(myGeneratedSourceFolders.isFolderGeneratedInCorrectLocation(bFolderPath, myAndroidProject));
}