Again, you don't understand how civil disobedience works.
For instance, take the Rosa Parks incident, which is the classic example. Rosa Parks broke the law by refusing to relinquish her seat in the black section of the bus to a white man when the white section became filled.
It happened rather frequently that the white sections filled and blacks were required to stand to allow white passengers to sit in the black section. This wasn't even the first time a black woman had been arrested for refusing to stand; it's been noted that Claudette Colvin was arrested in a similar situation nine months before Rosa Parks.
The difference: Colvin was arrested, charged, and convicted for criminal assault...not for breaking the segregation law. So, that was a different law being played out in the courtroom in her case, and the reason the NAACP did not act in that case.
But because this incident happened frequently, the NAACP had actually planned for it. Rosa Parks and others had been specifically trained in how to respond when it happened to them. They were trained in how to respond so that the only charge against them could be the segregation law itself, to make sure the segregation law and only the segregation law would come before the court.
The law you want to invalidate is the law you break...very specifically.