### Question:
NetworkOrganizer { protected static String toBinaryOctet(@NonNull Integer value) { if (value < 0 || value > 255) throw new ND4JIllegalStateException("IP octets cant hold values below 0 or above 255"); String octetBase = Integer.toBinaryString(value); StringBuilder builder = new StringBuilder(); for (int i = 0; i < 8 - octetBase.length(); i++) { builder.append("0"); } builder.append(octetBase); return builder.toString(); } protected  NetworkOrganizer(@NonNull Collection<NetworkInformation> infoSet);  NetworkOrganizer(@NonNull Collection<NetworkInformation> infoSet, String mask);  NetworkOrganizer(@NonNull String networkMask); String getMatchingAddress(); List<String> getSubset(int numShards); List<String> getSubset(int numShards, Collection<String> primary);  }### Answer:
@Test public void testFormat1() throws Exception { for (int i = 0; i < 256; i++) { String octet = NetworkOrganizer.toBinaryOctet(i); assertEquals(8, octet.length()); log.trace("i: {}; Octet: {}", i, octet); } }