Update StateFetching.java

So, this is my latest version for this requirements but i don't know how to test it.