The communication is made one way ,Though truststore is empty from client side ,SSL handshake failure is not happening which is expected instead the communication is going through.
My understanding by adding this ((SSLSocket)s).setNeedClientAuth(true); will check for one-way . this particular code is added in client side