Code example for ComparisonFailure

    protected void tearDown() throws Exception { 
    private static void assertStartsWith(String message, String prefix, String actual) {
        if (!actual.startsWith(prefix)) {
            throw new ComparisonFailure(message, prefix, actual);
    private static class ObbObserver extends OnObbStateChangeListener {
        private String path;
        public int state = -1;
        boolean done = false;
        public void onObbStateChange(String path, int state) {
            Log.d(TAG, "Received message.  path=" + path + ", state=" + state);
Connect your IDE to all the code out there  Get Codota for Java